how can i assign a full row into a new row?
조회 수: 1 (최근 30일)
이전 댓글 표시
suppose T = [1 2 3 4; 3 4 5 6]
and i want to assign the 1st row with all the column into a new row like P and this can be as follows
P= 1 2 3 4 Q= 3 4 5 6
댓글 수: 0
채택된 답변
Guillaume
2015년 3월 3일
P = T(1, :)
Q = T(2, :)
Or you could just not bother and use T(1, :) wherever you want P and T(2, :) wherever you want Q.
댓글 수: 0
추가 답변 (1개)
rantunes
2015년 3월 3일
Hey,
I am not sure if I really got your point, but what you want do is not this:
P = T(1,1:4); Q = T(1,5:8);
?
Greets
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!