G***G 发帖数: 16778 | 1 how to get the total number of rows in a matrix in MATLAB
for example,
A=[1 2 3;
4 5 6;
7 8 9];
[nrow,ncol]=size(A);
Is there other command which can return only nrow not ncol? | k****f 发帖数: 3794 | 2 nrow=size(A,1);
ncol=size(A,2);
【在 G***G 的大作中提到】 : how to get the total number of rows in a matrix in MATLAB : for example, : A=[1 2 3; : 4 5 6; : 7 8 9]; : [nrow,ncol]=size(A); : Is there other command which can return only nrow not ncol?
|
|