I want to use array as loop
y=0:0.01:1
for x in range y
print(x)
end
but it occurs error
how to use y array as iteration?

 Respuesta aceptada

KSSV
KSSV el 23 de Abr. de 2020
Editada: KSSV el 23 de Abr. de 2020

0 votos

y = 0:0.01:1 ;
for i = y
i
end
for i = 1:length(y)
y(i)
end

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 23 de Abr. de 2020

Editada:

el 23 de Abr. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by