Can I run a "clear java" command but still keep a variable in the workspace?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi:
I am trying to run "clear java" after temporarily modifying some files in the dynamic Java path. This also clears all variables from the workspace. Is there a way to keep one or more variables in the workspace (e.g. a la clearvars)? I'm currently writing the variables I need to a temporary *.mat file, and this seems far too hacky. Thanks all!
0 Commenti
Risposte (2)
Elias Gule
il 16 Mar 2015
I guess you can store those java variables in a structure and run "clear java"; the variables should still be available in the structure;
Vedere anche
Categorie
Scopri di più su Workspace Variables and MAT-Files in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!