How to get variables needed for Simulink model?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Bibigul Shektybayeva
am 22 Aug. 2017
Beantwortet: Brian Hannan
am 22 Aug. 2017
I have a Simulink model and a large workspace from which I need some variables for the model. I would like to load only those variables that are needed, and not the whole workspace. How can I get the list of variables that are required for the model?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
KL
am 22 Aug. 2017
filename = 'yourMatfile.mat';
yourVariables = {'X','caption'};
S = load(filename,yourVariables{:})
0 Kommentare
Siehe auch
Kategorien
Mehr zu Simulink Environment Customization finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!