Deleted variables reappearing in workspace.
古いコメントを表示
I am running a script with all the variables defined either in the script or in the base workspace. I have changed the names of some of the variables over time to be more concise. After these changes I have saved the workspace as well as all the scripts and functions I have been using. However, when I run one script in particular the old variables keep reappearing in the workspace and are being used by some of the other scripts. I have checked to make sure all names match the variables I want to use plus I have used clear, clearvars, and clearvars -global but they still keep reappearing. I have also tried to rerun my process from the beginning to try and eliminate residual variables. I have even tried to restart MATLAB and my computer to no avail.
Does anyone know of this issue and how to remedy it?
I can add the code here but I do not think it will be of much help. My problem is more with 'non-existing' variables popping up then the code itself. However, if someone thinks it will help I will gladly post it.
Thank you.
回答 (1 件)
per isakson
2014 年 3 月 5 日
0 投票
Seriously, using functions instead of scripts is a large part of the remedy.
カテゴリ
ヘルプ センター および File Exchange で Workspace Variables and MAT Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!