save variables in matlab workspace
25 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
satendra kumar
le 12 Nov 2012
Commenté : Shiv Nileshkumar Matliwala
le 15 Déc 2022
I have a function which calls a script. There are some variables in script. I want to save them to my command window. How can i do that. Any help fellas.
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 12 Nov 2012
Modifié(e) : Azzi Abdelmalek
le 12 Nov 2012
value=15;
assignin('base','var',value)
% 'var' is your variable name
2 commentaires
Shiv Nileshkumar Matliwala
le 15 Déc 2022
Is there any way to load the variable directly to base workspace ? becuase Its not possible to do this
assignin('base','var')
I want to do like above.
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Debugging and Analysis 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!