Reference to a cleared variable x

조회 수: 34 (최근 30일)
Dawood Al Kahali
Dawood Al Kahali 2017년 10월 1일
이동: Stephen23 2023년 8월 11일
Reference to a cleared variable x

채택된 답변

Image Analyst
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
Luigi Frunzo
Luigi Frunzo 2023년 5월 17일
이동: Stephen23 2023년 8월 11일
Thanks! Thanks a lot I am becaming crazy!!!
Raúl Acuña
Raúl Acuña 2023년 8월 10일
이동: Stephen23 2023년 8월 11일
Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by