Simulink 'To File' Block: How to save simulation outputs as distinct vectors
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
KostasK
am 18 Okt. 2019
Beantwortet: Fangjun Jiang
am 19 Okt. 2019
Hi all,
How is it possible to save in simulink a bunch of simulation outpus in the same .mat file (using the 'To File' block), but with each variable being saved not as part of the same matrix but as distinct vectors?
For example, I currently use a Mux to bring 3 variables together into the same .mat file. All these 3 variables are then saved in a single matrix. I would like them to be saved distinctly as vectors (each with a name that I give them, either manually or taken from the simulation). Is this possible?
Thanks for your help in advance,
KMT.
P.S.
I would assume that the above would be possible if I could opt to save the data as a structure (as the documentation says) but for some reason this option is not available for me (I only have timeseries and array). I use 2018b version
0 Kommentare
Akzeptierte Antwort
Fangjun Jiang
am 19 Okt. 2019
Use "To Workspace" block and then save those variables to a .mat file using "save" command.
0 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!