[求助]有没有取得matlab矩阵行数、列数的函数
我想创建一个矩阵,行数和列数分别为前几个矩阵的行数和列数 =size(a)<BR>m和n分别为行数和列数 <P>用size函数:<BR> X = rand(2,3,4);%2*3*4的矩阵<BR> d = size(X) returnsd = <BR> = size(X)returnsm1 = 2, m2 = 3, m3 = 4, m4 = 1<BR> = size(X) returnsm = 2, n = 12%n=3*4<BR> m2 = size(X,2) returnsm2 = 3<BR><BR> </P> a(i,:)第i行,a(:,j)第j列
页:
[1]