MATLAB数值计算
MATLAB数值计算...........................................................................................................................11创建矩阵.........................................................................................................................................31.1直接输入............................................................................................................................31.2向量....................................................................................................................................31.2.1linspace:线性分布..................................................................................................31.2.2冒号法.......................................................................................................................31.3函数创建............................................................................................................................41.3.1eye:单位矩阵.............................................................................................................41.3.2rand:随机矩阵........................................................................................................41.3.3zeros:全0矩阵.......................................................................................................41.3.4ones:全1矩阵........................................................................................................52矩阵运算.........................................................................................................................................52.1加减......................................................................................................................................52.1.1[M×N]±[M×N]...........................................................................................................52.2乘..........................................................................................................................................62.2.1[M×N]*a.....................................................................................................................62.2.2[M×N]*[N×M]...........................................................................................................62.3乘方......................................................................................................................................72.3.1[M×M]^a....................................................................................................................72.3.2a^[M×M]....................................................................................................................72.4特殊运算..............................................................................................................................82.4.1求逆inv.....................................................................................................................82.4.2行列式det.................................................................................................................82.4.3特征值eig.................................................................................................................82.4.4转置'和.'..............................................................................................................92.4.5变形reshape...........................................................................................................102.4.6翻转rot90,fliplr,flipud..........................................................................................112.4.7抽取diag,tril,triu..................................................................................................122.5数组运算............................................................................................................................122.5.1乘.............................................................................................................................12[M×N].*[M×N].........................................................................................................122.5.2除.............................................................................................................................13[M×N]./[M×N]..........................................................................................................14[M×N].\[M×N]..........................................................................................................142.5.3乘方.........................................................................................................................14[M×N].^[M×N].........................................................................................................15a.^[M×N]...................................................................................................................152.6除法....................................................................................................................................152.6.1求解线性方程组....................................................................................................153多项式...........................................................................................................................................163.1系数表示法poly...............................................................................................................163.2求根roots...........................................................................................................................163.3乘法conv...........................................................................................................................163.4除法deconv.......................................................................................................................173.5求值polyval.......................................................................................................................173.6微分polyder......................................................................................................................18