Matlab--求矩阵的行列数
求矩阵A的行列数
intput:
A = [22,1,3;44,2,4]
[hang,lie]=size(A)
output:
A =
22 1 3
44 2 4
hang =
2
lie =
3
求矩阵A的行数
input:
A = [22,1,3;44,2,4]
hang=size(A,1)
output:
A =
22 1 3
44 2 4
hang =
2
求矩阵A的列数
A = [22,1,3;44,2,4]
lie=size(A,2)
output:
A =
22 1 3
44 2 4
lie=
3