Reference to a cleared variable x
34 次查看(过去 30 天)
显示 更早的评论
Reference to a cleared variable x
0 个评论
采纳的回答
Image Analyst
2017-10-1
编辑:Image Analyst
2020-3-30
You used to have x, but now you don't anymore. You cleared it somehow, like by calling the clear() or delete() function. For example, if you have any lines like these inside your function, remove them:
clear all; % Remove this line from inside any function.
clearvars; % Remove this line from inside any function.
clear('x'); % If you have this in your function, remove it.
Can't say much more without seeing your code.
8 个评论
更多回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!