How to get variables needed for Simulink model?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Bibigul Shektybayeva
le 22 Août 2017
Réponse apportée : Brian Hannan
le 22 Août 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 commentaires
Réponse acceptée
Plus de réponses (1)
KL
le 22 Août 2017
filename = 'yourMatfile.mat';
yourVariables = {'X','caption'};
S = load(filename,yourVariables{:})
0 commentaires
Voir également
Catégories
En savoir plus sur Simulink Environment Customization dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!