Stop the code if the cells are empty

조회 수: 13 (최근 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 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