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

2 个投票

while true
%code here
if save_rig == A(n); break; end
end

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 MATLAB Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by