Wrong sized array from "To workspace"
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Anne
am 16 Jul. 2023
Kommentiert: Sulaymon Eshkabilov
am 18 Jul. 2023
Hello!
I am interested in using several arrays in a Matlab code. Thus, I used the "to workspace" block to convert signal values to arrays. I used the settings:
However, for some reason, I got two arrays with different dimensions:
What should I do to have correctly sized arrays?
3 Kommentare
Paul
am 17 Jul. 2023
I think that, unless the To Workspace block is actually inside a conditionally executed subsystem, the only thing that matters is the sample time of the signal input to the To Workspace block, becasue the Sample time paramater of the To Workspace block is set to -1 (inherited).
Akzeptierte Antwort
Sulaymon Eshkabilov
am 17 Jul. 2023
Are you using a variable step solver in your model? If so, you'd need to change it to a fixed step solver.
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Sources finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!