Reference to a cleared variable x

27 vues (au cours des 30 derniers jours)
Dawood Al Kahali
Dawood Al Kahali le 1 Oct 2017
Déplacé(e) : Stephen23 le 11 Août 2023
Reference to a cleared variable x

Réponse acceptée

Image Analyst
Image Analyst le 1 Oct 2017
Modifié(e) : Image Analyst le 30 Mar 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 commentaires
Luigi Frunzo
Luigi Frunzo le 17 Mai 2023
Déplacé(e) : Stephen23 le 11 Août 2023
Thanks! Thanks a lot I am becaming crazy!!!
Raúl Acuña
Raúl Acuña le 10 Août 2023
Déplacé(e) : Stephen23 le 11 Août 2023
Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by