Filter löschen
Filter löschen

Do-While

4 Ansichten (letzte 30 Tage)
Salvatore Turino
Salvatore Turino am 21 Jan. 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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 21 Jan. 2012
while true
%code here
if save_rig == A(n); break; end
end
  1 Kommentar
Salvatore Turino
Salvatore Turino am 22 Jan. 2012
thank you

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by