rewrite in a different way

조회 수: 5 (최근 30일)
fawzeya bin tamim
fawzeya bin tamim 2021년 4월 29일
답변: Walter Roberson 2021년 4월 29일
How can i write the following but in a different way:
for i=0:10000
t1=10*(i/10000);
if t1>5
ro1=0;
end

채택된 답변

Walter Roberson
Walter Roberson 2021년 4월 29일
i = 0:10000;
t1 = 10*(1/10000);
ro1 = t1 <= 5;

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by