矩阵运算 矩阵的基本生成 m1 = 1:5 % 生成行矩阵[1,2,3,4,5] m2 = 1:2:10 % 起点:步长:终点 [1,3,5,7,9] linspace(x1,x2,n) % 生成 n 个点.这些点的间距为 (x2-x1)/(n-1). m3 = linspace(0,5,11) % [0,0.5,1,1.5,2,2.5,3,3.5,4,4.5,5] m4 = 1:3; m5 = 4:6; m6 = [m4, m5] % [1,2,3,4,5,6] 矩阵组合 m7 = [m4;…