Stop the code if the cells are empty

11 次查看(过去 30 天)
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:

采纳的回答

Ronald Godagandeni Dewage
编辑:Voss 2023-12-14
i think the found the answer its;
if isempty(answer)
return
end
let me know if anyone got better abetter idea

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by