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?

 Akzeptierte Antwort

Star Strider
Star Strider am 22 Sep. 2015
Bearbeitet: Star Strider am 22 Sep. 2015

1 Stimme

Change the ‘j’ assignment to:
j(i) = i*5;

Weitere Antworten (1)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by