Stop the code if the cells are empty

12 ビュー (過去 30 日間)
Ronald Godagandeni Dewage
Ronald Godagandeni Dewage 2021 年 2 月 11 日
編集済み: Voss 2023 年 12 月 14 日
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 日
i think the found the answer its;
if isempty(answer)
return
end
let me know if anyone got better abetter idea

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by