I figured it out. If anyone wants to know - just use a constant block instead of "from workspace" block. I dont know why this is like that but it is.
Simulink ignores the first value
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I would like to display all the elements of an array I created in the workspace into the display block in simulink , but the first element does not show up. How can I fix that?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1346824/image.png)
0 commentaires
Réponses (1)
Alexander Guillen
le 5 Avr 2023
1 commentaire
Walter Roberson
le 5 Avr 2023
When you use From Workspace, then the first column of the array (or vector) is treated as being the time that the sample is to be presented to the model.
Voir également
Catégories
En savoir plus sur Simulink Functions dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!