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 CenterFile Exchange에서 Signal Import and Export에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by