How to make stop running the program when once getting empty matrix???
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
suchismita
el 18 de Abr. de 2015
Comentada: suchismita
el 21 de Abr. de 2015
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...
0 comentarios
Respuesta aceptada
Geoff Hayes
el 18 de Abr. de 2015
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
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrices and Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!