Borrar filtros
Borrar filtros

rewrite in a different way

1 visualización (últimos 30 días)
fawzeya bin tamim
fawzeya bin tamim el 29 de Abr. de 2021
Respondida: Walter Roberson el 29 de Abr. de 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

Respuesta aceptada

Walter Roberson
Walter Roberson el 29 de Abr. de 2021
i = 0:10000;
t1 = 10*(1/10000);
ro1 = t1 <= 5;

Más respuestas (0)

Categorías

Más información sobre Function Creation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by