how p(:,j) differs from p(j,:)?
이전 댓글 표시
I often see people using these,
how p(:,j) differs from p(j,:)?
채택된 답변
추가 답변 (1개)
Wayne King
2012년 12월 27일
편집: Wayne King
2012년 12월 27일
p(:,j) takes all the rows and the j-th column of p
p(j,:) takes the j-th row and all the columns of p
So
p = [1 2; 3 4];
j = 1;
p(j,:)
p(:,j)
카테고리
도움말 센터 및 File Exchange에서 Object Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!