How to convert a vector length to another length "Compressing or Sampling" ?
Mostrar comentarios más antiguos
Given: I have 2 systems: Practical & its mathematical model.
Requirement: I want to compare the output behavior for both.
Problem: The input signal for both comes from “Signal builder in Simulink” with length of “82x1 double”. However the output of the practical system is “6600x1 double” - “May be due to the data acquisition sampling time is too high”- & the output of the simulated mathematical model is “82x1 double” which is OK!!
Now how shall I compare/Draw these three signals from the same plot? I think that we have to compress or sampling them. But when I used sampler “TU+S” it gave an error that this block cannot be used for continuous sampling.
Respuestas (1)
Azzi Abdelmalek
el 10 de Nov. de 2012
0 votos
Pass your two signals through a zoh block with the same sample time as your signal builder
Categorías
Más información sobre Simulink en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!