Matlab--取矩阵的某一行
取矩阵A的某一行
A = [22,1,3,0,2;11,23,43,55,5]
A(2,:)
A =
22 1 3 0 2
11 23 43 55 5
ans =
11 23 43 55 5
A = [22,1,3,0,2;11,23,43,55,5]
A(2,:)
A =
22 1 3 0 2
11 23 43 55 5
ans =
11 23 43 55 5