How to extract timeseries datasets from Matlab Workspace to 'Matlab function' block in SImulink?
Show older comments
The X.mat is a 1x1 double time series consists of Time, TimeInfo, Data and DataInfo. Now, I would like to use a 'From Workspace' block connected to 'Matlab function' block in order to get the Data and Time from the timeseries in Simulink. How to extract the Data and Time from the X.mat as an inputs to the 'Matlab function'?
Answers (2)
From Workspace (Simin) block directly accepts the time series as input data.
Just replace "simin" with your timeseries variable name.
Categories
Find more on Event Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!