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.

Answers (1)

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

Asked:

on 10 Nov 2012

Community Treasure Hunt

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

Start Hunting!