How can I get the first row of different matrices into one matrix?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a for loop stating an interval and another for loop inside that runs a backslash through intervals. The backslash produces 7 (5x1) matricies. I need to get each row into a matrix that is (7x1). Below are the first three matricies my code produced.
6.8000 (r3)
8.4500
-0.0000
6.2832
6.2832
6.1167(r3)
8.7892
-2.4183
6.5619
6.5619
4.3646(r3)
9.2953
-3.8731
6.7130
6.7130
0 Kommentare
Antworten (1)
Walter Roberson
am 23 Okt. 2019
for iteration = 1 : 7
this_result = something \ something_else;
combined_results(iteration,:) = this_result(1,:);
end
1 Kommentar
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!