필터 지우기
필터 지우기

How to make stop running the program when once getting empty matrix???

조회 수: 3 (최근 30일)
suchismita
suchismita 2015년 4월 18일
댓글: suchismita 2015년 4월 21일
I am not getting how to stop computing once in a program i am getting empty matrix.
for example, when i am running if in middle a link matrix is showing empty matrix i want to stop computing the program and will show the last existing link matrix which was not a empty matrix.
please please help me...

채택된 답변

Geoff Hayes
Geoff Hayes 2015년 4월 18일
Suchismita - use the isempty function to determine whether your matrix is empty or not. If it is, then exit the program. For example, if A is your matrix and you want to exit the program then you could do
% some code
if isempty(A)
return;
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by