Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
for i=1:5
x(i)=i+1;
end
disp(x(i));

Risposta accettata

Walter Roberson
Walter Roberson il 4 Lug 2015
disp(x);

Più risposte (0)

Categorie

Scopri di più su Entering Commands in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by