how can i pass the values to an array?

for i=1:10
j=i*5:
end
output will be:
5,
10,
......
50.
how can i pass these output values(5.....50) in an array?

 Respuesta aceptada

Star Strider
Star Strider el 22 de Sept. de 2015
Editada: Star Strider el 22 de Sept. de 2015
Change the ‘j’ assignment to:
j(i) = i*5;

2 comentarios

Muhammad Umer
Muhammad Umer el 22 de Sept. de 2015
thanks
Star Strider
Star Strider el 22 de Sept. de 2015
My pleasure.

Iniciar sesión para comentar.

Más respuestas (1)

Categorías

Más información sobre Operators and Elementary Operations en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 22 de Sept. de 2015

Comentada:

el 22 de Sept. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by