Can I run a "clear java" command but still keep a variable in the workspace?
조회 수: 3 (최근 30일)
이전 댓글 표시
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
답변 (2개)
Elias Gule
2015년 3월 16일
I guess you can store those java variables in a structure and run "clear java"; the variables should still be available in the structure;
참고 항목
카테고리
Help Center 및 File Exchange에서 Whos에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!