matlab from workplace,关于使用From workspace的问题

如题,在做一个风机模拟,要求从workspace导入风速,我试了用timeseries命令创建变量

windspeed=timeseries(windspeed_sec,time);

结果如下:

matlab from workplace,关于使用From workspace的问题_第1张图片

捕获.PNG (12.63 KB, 下载次数: 5)

2017-5-6 18:33 上传

然而使用From workspace运行后出现如下报错:

Invalid variable 'windspeed' specified as workspace input in 'SIP1_main/From Workspace1'. The input is either a timeseries or a Dataset with elements containing timeseries. The Data property of timeseries must be a built-in numeric, logical, fixed point or enumerated type. Data must be finite (not Inf or NaN).

求解。

另外我也试了建矩阵变量作为输入

windspeed=[time, windspeed_sec];

结果如下:

matlab from workplace,关于使用From workspace的问题_第2张图片

捕获.PNG (22.73 KB, 下载次数: 6)

2017-5-6 18:39 上传

同样报错:

Unsupported input format for From Workspace block 'SIP1_main/From Workspace1'. Available formats are double non-complex matrix, a structure with or without time, or a structure with MATLAB timeseries as leaf nodes. All formats require the data to be finite (not Inf or NaN).

求解

你可能感兴趣的:(matlab,from,workplace)