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

 采纳的回答

Ameer Hamza
Ameer Hamza 2020-11-9

1 个投票

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

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Simulink 環境のカスタマイズ 的更多信息

Community Treasure Hunt

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

Start Hunting!