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에 대해 자세히 알아보기

질문:

2020년 11월 9일

답변:

2020년 11월 9일

Community Treasure Hunt

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

Start Hunting!