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!