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?

 Réponse acceptée

Star Strider
Star Strider le 22 Sep 2015
Modifié(e) : Star Strider le 22 Sep 2015
Change the ‘j’ assignment to:
j(i) = i*5;

2 commentaires

Muhammad Umer
Muhammad Umer le 22 Sep 2015
thanks
Star Strider
Star Strider le 22 Sep 2015
My pleasure.

Connectez-vous pour commenter.

Plus de réponses (1)

Catégories

En savoir plus sur Operators and Elementary Operations dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by