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?

回答 (1 件)

Walter Roberson
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 件のコメント
bharat yadav
bharat yadav 2017 年 6 月 14 日
i am used time series and struct also but i am getting 1by4095 signal only,i am missing 1st element in 1st column..please check once
Walter Roberson
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 ExchangeMeasurements and Spatial Audio についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by