Reference to a cleared variable x

 Risposta accettata

Image Analyst
Image Analyst il 1 Ott 2017
Modificato: Image Analyst il 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 Commenti

Adewale Obaro
Adewale Obaro il 16 Mar 2018
Spostato: Stephen23 il 11 Ago 2023
To solve this problem, simply remove "clear all" from the function
Visweshwaran R
Visweshwaran R il 30 Mar 2020
Spostato: Stephen23 il 11 Ago 2023
saved my day.Thanks
Ilham Apis
Ilham Apis il 26 Ott 2020
Spostato: Stephen23 il 11 Ago 2023
Thanks
Marco Soto
Marco Soto il 17 Mag 2021
Spostato: Stephen23 il 11 Ago 2023
Thanks
Ronald Zafra
Ronald Zafra il 18 Feb 2022
Spostato: Stephen23 il 11 Ago 2023
Thanks
Sara
Sara il 13 Feb 2023
Spostato: Stephen23 il 11 Ago 2023
Thanks
Luigi Frunzo
Luigi Frunzo il 17 Mag 2023
Spostato: Stephen23 il 11 Ago 2023
Thanks! Thanks a lot I am becaming crazy!!!
Raúl Acuña
Raúl Acuña il 10 Ago 2023
Spostato: Stephen23 il 11 Ago 2023
Thanks

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Programming in Centro assistenza e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by