How to convert a vector length to another length "Compressing or Sampling" ?
Show older comments
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.
Answers (1)
Azzi Abdelmalek
on 10 Nov 2012
0 votes
Pass your two signals through a zoh block with the same sample time as your signal builder
Categories
Find more on Signal Attributes and Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!