Simulink input data - unsynchronized time arrays

4 ビュー (過去 30 日間)
Peter
Peter 2014 年 7 月 22 日
編集済み: Peter 2014 年 7 月 22 日
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?

回答 (0 件)

カテゴリ

Help Center および File ExchangeSignal Import and Export についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by