Effacer les filtres
Effacer les filtres

rewrite in a different way

1 vue (au cours des 30 derniers jours)
fawzeya bin tamim
fawzeya bin tamim le 29 Avr 2021
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

Réponse acceptée

Walter Roberson
Walter Roberson le 29 Avr 2021
i = 0:10000;
t1 = 10*(1/10000);
ro1 = t1 <= 5;

Plus de réponses (0)

Catégories

En savoir plus sur Function Creation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by