i am using from workspae in simulink..i have to load 1by4096 vector,but i am getting 1by4095 ,i am missing first element.what should i do to get that one?
10 ビュー (過去 30 日間)
古いコメントを表示
i am using from workspae in simulink..i have to load 1by4096 vector,but i am getting 1by4095 ,i am missing first element.what should i do to get that one?
0 件のコメント
回答 (1 件)
Walter Roberson
2017 年 6 月 14 日
When you use From Workspace or From File to load arrays, then the first column is always interpreted as the timestamp. To avoid this you need to use the timeseries or struct input possibilities so you can supply the time information.
2 件のコメント
Walter Roberson
2017 年 6 月 14 日
If you look at https://www.mathworks.com/help/simulink/slref/fromworkspace.html#btm3mv9-1 then notice it creates an extra column for the time. In your case since you have data for only one time, you could use 0 as the time.
参考
カテゴリ
Help Center および File Exchange で Measurements and Spatial Audio についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!