Input has is 6*1 matrix but simulink displays only 5*1
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Med Aymane Ahajjam
el 14 de Sept. de 2015
Respondida: Med Aymane Ahajjam
el 16 de Sept. de 2015
Hi, I wanted to display a 6*1 matrix but i only get it's last 5 elements (i.e. the first element doesn't appaear..)
Here's the Simulink blocks and the input variable in Matlab:
0 comentarios
Respuesta aceptada
Tim Jackman
el 16 de Sept. de 2015
When you use the From Workspace block with a matrix format (as you are doing here), each row of the matrix has a time stamp in the first column. The vector containing the corresponding data is in the subsequent column(s). Basically, the first entry in your matrix is going to be interpreted as a time stamp, and effectively ignored in this case. I'd suggest adding an extra zero in front.
0 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Simulink Functions en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!