Try and Catch for multiple conditions
Mostrar comentarios más antiguos
Hello. If I have say 10 conditions and each one may fail, rather than have a try and catch round each condition, is there a better way where if condtion 1 isnt met, it ignores it and moves onto condition2?
Respuesta aceptada
Más respuestas (1)
David Hill
el 6 de Abr. de 2022
if condition1
%do
elseif condition2
%do
elseif condition3
%do
elseif condition4
%do
elseif condition5
%do
elseif condition6
%do
end
1 comentario
Categorías
Más información sobre MATLAB Support Package for USB Webcams en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!