matlab function でdo while文を実装する方法はありますか?

 Respuesta aceptada

Ameer Hamza
Ameer Hamza el 9 de Nov. de 2020

1 voto

do while is not directly supported in MATLAB. Here is an alternate way
while 1
% code
if ~condition
break
end
end

Más respuestas (0)

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 9 de Nov. de 2020

Respondida:

el 9 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!