How do I use a timeseries data in simulink

6 Ansichten (letzte 30 Tage)
Ushnik Mukherjee
Ushnik Mukherjee am 18 Nov. 2013
Bearbeitet: Ushnik Mukherjee am 18 Nov. 2013
Hi, I am using Matlab R2011a version. I want to use a wind speed data in simulink. The data file is a .mat file consisting of wind speed data for 3 years. I wrote down this code in the editor to load the .mat file:
load('u_W_3years.mat')
u_ts = u_W_3years;
I put the data name as 'u_ts' in the from workspace block parameter in simulink. But when I run the simulink file it gives me an error saying:
"Unsupported input format for From Workspace block 'Wind_Electrolyzer/From Workspace'. Available formats include: (1) a double non-complex matrix, (2) a structure with or without time, (3) a Simulink.Timeseries object. All formats require the data to be finite (not Inf or NaN)."
Am I missing anything? Does the 2011 version not support inputs in the form of a time series for the From Workspace block?
Thank you for the help
Ushnik

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by