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

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 29 Apr. 2021

0 Stimmen

i = 0:10000;
t1 = 10*(1/10000);
ro1 = t1 <= 5;

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by