Why the first number is not displayed? [SIMULINK]

1 回表示 (過去 30 日間)
madhan ravi
madhan ravi 2019 年 3 月 6 日
コメント済み: madhan ravi 2019 年 3 月 7 日
Screen Shot 2019-03-04 at 11.20.22 AM.png
Even if the variable block is connected to the workspace block the first value is not stored, why?
  2 件のコメント
Fangjun Jiang
Fangjun Jiang 2019 年 3 月 7 日
Note that the source block in the picture is FromWorkspace block, not a Constant block.
madhan ravi
madhan ravi 2019 年 3 月 7 日
Thank you Fangjun noted with care :-)

サインインしてコメントする。

採用された回答

Fangjun Jiang
Fangjun Jiang 2019 年 3 月 6 日
For matrix formats, each row of the matrix has a time stamp in the first column and a vector containing the corresponding data sample in the subsequent column(s).
  2 件のコメント
madhan ravi
madhan ravi 2019 年 3 月 6 日
編集済み: madhan ravi 2019 年 3 月 6 日
Could you elaborate with a short illustration? Is it because the starting sample time is zero? Is there anyway to show the first element?
Fangjun Jiang
Fangjun Jiang 2019 年 3 月 6 日
You are using FromWorkspace block and specify the data as a row vector (or 1xn matrix). By definition, the data in the first column is time. Try
x=[0.1, 1:10;]

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by