How can I get the first row of different matrices into one matrix?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Walter Roberson
2019년 10월 23일
for iteration = 1 : 7
this_result = something \ something_else;
combined_results(iteration,:) = this_result(1,:);
end
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!