如题,在做一个风机模拟,要求从workspace导入风速,我试了用timeseries命令创建变量
windspeed=timeseries(windspeed_sec,time);
结果如下:
捕获.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];
结果如下:
捕获.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,关于使用From workspace的问题的全部内容,更多相关matlab内容请搜索靠谱客的其他文章。
发表评论 取消回复