Filter löschen
Filter löschen

i would like to get all values of for loop outside loop,but this program gives me the last value only

2 Ansichten (letzte 30 Tage)
for i=1:5
x(i)=i+1;
end
disp(x(i));

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 4 Jul. 2015
disp(x);

Weitere Antworten (0)

Kategorien

Mehr zu Entering Commands finden Sie in Help 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