Simulink input data - unsynchronized time arrays

4 visualizzazioni (ultimi 30 giorni)
Peter
Peter il 22 Lug 2014
Modificato: Peter il 22 Lug 2014
I have a question about time arrays of input data for Matlab Simulink that keeps bothering me. I know I can load data from the Workspace with the FromWorkspace blocks.
However, how does one deal with data that is not synchronized if one needs both input data in a single Simulink model, e.g:
T_amb.time = [0,1,2,3,4,5.0001,5.99999]
T_amb.signals.values = [273,273,273,273,2 73,273,273]
p_amb.time = [2.25,2.5,2.75,3.00,3.25,3.50,3.75]
p_amb.signals.values = [101325,101325,101325,101325,101325,101325,101325]
Clearly, the sample times are varying within the time array of the first variable (1+/-0.0001) and mutually between the variables (1 vs 0.25).
Does Simulink possess a feature to synchronize this by interpolation/extrapolation and resampling?

Risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by