LecMatlab基础.pptVIP

  • 1
  • 0
  • 约4.51千字
  • 约 18页
  • 2016-11-29 发布于江苏
  • 举报
* * Eps 2-52 , 2.22 e-016 Unit roundoff 1.11 e-016 Realmax; Realmin; Format long e/g; 1.1*realmax; 0/0; inf/inf; Realmin*eps; Realmin*eps*0.1; 数学函数 Help elfun Help specfun IEEE standard Double precision (64-bit word) 16 significant decimal digits Matlab 基础 a=1; b=1; while a+b~=a b=b/2; end a=1.0e+308; b=1.1e+308; c=-1.001e+308; a+(b+c) a+b+c %numerical cancellation x=1.e-15; ((1+x)-1)/x 舍入误差的影响 矩阵的创建 A=[1 2 3; 4 5 6]; %行内元素用_或, %行间用; Zeros() Ones() Eye() A=rand(5); A=magic(3); 矩阵的基本操作 用小矩阵作元素建立大矩阵 B=[A;[1 2 3]]; C=[A eye(size(A))]; 从已存在的矩阵创建 Diag() Tril() Triu() Rot90 Fliplr Reshap

文档评论(0)

1亿VIP精品文档

相关文档