Borrar filtros
Borrar filtros

Do-While

4 visualizaciones (últimos 30 días)
Salvatore Turino
Salvatore Turino el 21 de En. de 2012
Hallo, i want to realize in matlab the C code do-while. the condition to stop the cicle is: if save_rig==A(n). can you tell me how to realize it in matlab?actually i've done it with a for cicle+break but i don't like this solution. thank you

Respuesta aceptada

Walter Roberson
Walter Roberson el 21 de En. de 2012
while true
%code here
if save_rig == A(n); break; end
end
  1 comentario
Salvatore Turino
Salvatore Turino el 22 de En. de 2012
thank you

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Programming 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!

Translated by