Reference to a cleared variable x

 Respuesta aceptada

Image Analyst
Image Analyst el 1 de Oct. de 2017
Editada: Image Analyst el 30 de Mzo. de 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 comentarios

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Programming en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 1 de Oct. de 2017

Movida:

el 11 de Ag. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by