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
Ronald Godagandeni Dewage 2021 年 2 月 11 日
編集済み: Voss 2023 年 12 月 14 日

0 投票

i think the found the answer its;
if isempty(answer)
return
end
let me know if anyone got better abetter idea

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Numeric Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by