rewrite in a different way

1 次查看(过去 30 天)
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 中查找有关 Function Creation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by