how can i turn the results from a column into a row
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
i have a for loop the calculates for X n number of times
the answers i get are in this format
X=1
x=2
x=3
x=4
x=5
i want it to look like
X=
1 2 3 4 5
0 Kommentare
Antworten (1)
madhan ravi
am 23 Apr. 2019
x = zeros(1,5); % for illustration purposes
for k = 1:5
x(k) = k;
end
2 Kommentare
madhan ravi
am 23 Apr. 2019
Bearbeitet: madhan ravi
am 23 Apr. 2019
Inside loop, the same way I have illustrated.
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements 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!