How do I convert this for loop in to while loop with same sequence of number.

조회 수: 1 (최근 30일)
Abdul Manan
Abdul Manan 2020년 6월 23일
답변: Mohammad Sami 2020년 6월 23일
for x=0:2:50
disp(x);
end

답변 (1개)

Mohammad Sami
Mohammad Sami 2020년 6월 23일
x = 0;
while x <= 50
disp(x);
x = x + 2;
end

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by