Reference to a cleared variable x

39 Ansichten (letzte 30 Tage)
Dawood Al Kahali
Dawood Al Kahali am 1 Okt. 2017
Verschoben: Stephen23 am 11 Aug. 2023
Reference to a cleared variable x

Akzeptierte Antwort

Image Analyst
Image Analyst am 1 Okt. 2017
Bearbeitet: Image Analyst am 30 Mär. 2020
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 Kommentare
Luigi Frunzo
Luigi Frunzo am 17 Mai 2023
Verschoben: Stephen23 am 11 Aug. 2023
Thanks! Thanks a lot I am becaming crazy!!!
Raúl Acuña
Raúl Acuña am 10 Aug. 2023
Verschoben: Stephen23 am 11 Aug. 2023
Thanks

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by