Stop the code if the cells are empty

11 Ansichten (letzte 30 Tage)
Ronald Godagandeni Dewage
Ronald Godagandeni Dewage am 11 Feb. 2021
Bearbeitet: Voss am 14 Dez. 2023
im trying to find a way if my variable 'answer' (which is a cell) is blank/empty, how to stop the script.
I initially tried:
answer variable is:
error:

Akzeptierte Antwort

Ronald Godagandeni Dewage
Ronald Godagandeni Dewage am 11 Feb. 2021
Bearbeitet: Voss am 14 Dez. 2023
i think the found the answer its;
if isempty(answer)
return
end
let me know if anyone got better abetter idea

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by