Do-While

4 次查看(过去 30 天)
Salvatore Turino
Salvatore Turino 2012-1-21
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

采纳的回答

Walter Roberson
Walter Roberson 2012-1-21
while true
%code here
if save_rig == A(n); break; end
end

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by