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!