What I am doing actually is loading a structure into the function, then change the variables in it after some operation. I want to overwrite the structure so that it gets updated every time.
Saving structure data type in Simulink
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a MATLAB Function block from which I need to save 10 variables to a file. Every variable has different size. I thought of taking advantage of structure data types. But not been able to save the structure with help of 'To File' block. Moreover, 'save()' function also can't be used in the matlab function block.
Is there any other way I can do that.
Or any way to store all 10 variables in same .mat file.
3 Kommentare
Dhananjay Kumar
am 31 Mär. 2020
Bearbeitet: Dhananjay Kumar
am 31 Mär. 2020
You want to save the structure or overwrite it?
Antworten (1)
Siehe auch
Kategorien
Mehr zu Simulink Functions 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!