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 で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!