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
Azzi Abdelmalek 2012 年 11 月 10 日

0 投票

Pass your two signals through a zoh block with the same sample time as your signal builder

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

質問済み:

2012 年 11 月 10 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by