it is possible to access the 'base' workspace from a subfonction ?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I'm would like to access some variables in the 'base' workspace from a subfonction. because when I tried the variables is not found.
thanks in advance ;)
0 Commenti
Risposta accettata
Daniel Shub
il 17 Lug 2012
Yes if is possible to manipulate and access the base workspace from within a function. Just because MATLAB provides this functionality, however, doesn't mean it is a good idea to use it. Please consider alternatives.
The functions you are looking for are EVALIN and ASSIGNIN.
2 Commenti
Più risposte (1)
khaled DAWOUD
il 17 Lug 2012
you can use assignin function to reference to variable in the workspace in your function.
Vedere anche
Categorie
Scopri di più su Whos in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!