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 CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by