How to convert a vector length to another length "Compressing or Sampling" ?
显示 更早的评论
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.
回答(1 个)
Azzi Abdelmalek
2012-11-10
0 个投票
Pass your two signals through a zoh block with the same sample time as your signal builder
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!