Stop the code if the cells are empty

12 visualizzazioni (ultimi 30 giorni)
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:

Risposta accettata

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

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by