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
10 次查看(过去 30 天)
显示 更早的评论
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?

0 个评论
回答(1 个)
Alexander Guillen
2023-4-5
1 个评论
Walter Roberson
2023-4-5
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!