Why the first number is not displayed? [SIMULINK]

1 visualización (últimos 30 días)
madhan ravi
madhan ravi el 6 de Mzo. de 2019
Comentada: madhan ravi el 7 de Mzo. de 2019
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 comentarios
Fangjun Jiang
Fangjun Jiang el 7 de Mzo. de 2019
Note that the source block in the picture is FromWorkspace block, not a Constant block.
madhan ravi
madhan ravi el 7 de Mzo. de 2019
Thank you Fangjun noted with care :-)

Iniciar sesión para comentar.

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 6 de Mzo. de 2019
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 comentarios
madhan ravi
madhan ravi el 6 de Mzo. de 2019
Editada: madhan ravi el 6 de Mzo. de 2019
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 el 6 de Mzo. de 2019
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;]

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by