matlab primer 7th edition phần 1 pdf
... functions 11 0 16 .11 Solving algebraic equations 11 3 16 .12 Solving differential equations 11 6 16 .13 Further Maple access 11 7 17 . Polynomials, Interpolation, and Integration 11 8 17 .1 Representing ... polynomials 11 8 17 .2 Evaluating polynomials 11 9 17 .3 Polynomial interpolation 11 9 17 .4 Numeric integration (quadrature) 12 1 18 . Solving Equations 12 2 18 .1...
Ngày tải lên: 12/08/2014, 21:20
... Graphics 11 .1 Curve plots 11 .2 Mesh and surface plots 11 .3 Color shading and color profile 11 .4 Perspective of view 11 .5 Parametrically defined surfaces 12 . Advanced Graphics 12 .1 Handle Graphics 12 .2 ... polynomials 15 .11 Function functions and ODE solvers 15 .12 Sparse matrices 15 .13 Two-dimensional graphs 15 .14 Three-dimensional graphs 15 .15 Specialized graphs 1...
Ngày tải lên: 12/08/2014, 21:20
... i + (i -1) *m tol = 10 0 * eps s = 2 * (d(i) >= 0) - 1 A(k) = (1+ tol) * s .* max(f(i), tol) The variable eps (epsilon) gives the smallest value such that 1+ eps > 1, about 10 -16 on ... dominant. Try: A = [ -1 2 3 -4 0 2 -1 0 1 2 9 1 -3 4 1 1] These statements compute a vector i containing indices of rows that violate diagonal dominance (rows 1 and 4...
Ngày tải lên: 12/08/2014, 21:20
matlab primer 7th edition phần 3 ppsx
... a) ; [m n] = size(A) ; k = i + (i -1) *m ; tol = 10 0 * eps ; s = 2 * (d(i) >= 0) - 1 ; A(k) = (1+ tol) * s .* max(f(i), tol) ; 38 Set A to [1 -2; -1 1] by clicking on the command in the ... (nargin == 1) tol = 10 0 * eps ; end for i = 1: n d = A(i,i) ; a = abs(d) ; f = 0 ; for j = 1: n if (i ~= j) f = f + abs(A(i,j)) ; end end if (f >= a) aii =...
Ngày tải lên: 12/08/2014, 21:20
matlab primer 7th edition phần 4 pps
... ; tol = -1 ; if (nargin > 1) { if (!mxIsEmpty (pargin [1] ) && mxIsDouble (pargin [1] ) && !mxIsComplex (pargin [1] ) && mxIsScalar (pargin [1] )) { tol ... calls to MATLAB- specific mx or mex routines. subroutine utsolve (n, x, A, b) integer n real*8 x(n), A(n,n), b(n), xi integer i, j do 1 i = 1, n xi = b(i) do 2 j = 1, i -...
Ngày tải lên: 12/08/2014, 21:21
matlab primer 7th edition phần 5 pptx
... example, t = . 01: . 01: 20*pi ; x = cos(t) ; 88 added together. The commands below create a matrix whose diagonal entries are 2, 1, and 1. i = [1 2 3 1] ; j = [1 2 3 1] ; s = [1 1 1 1] ; S = ... choice as shown above. Try, for example, syms x x1 x2 theta F = x * (x1*x2 + x1 - 2) findsym(F ,1) diff(F, x) % ∂F/∂x diff(F, x1) % ∂F/∂x1 diff(F, x2) % ∂F/∂x2 G = cos(the...
Ngày tải lên: 12/08/2014, 21:21
matlab primer 7th edition phần 6 potx
... 11 2 is singular. The following simple computation: syms t A = [t 1 0 ; 1 t 1 ; 0 1 t] p = det(A) solve(p) shows that this occurs for t = 0, √2, and √−2. See Section 16 .11 for the ... commands: simplify(cos(x) + (-sin(x)^2)^ (1/ 2)) simple (cos(x) + (-sin(x)^2)^ (1/ 2)) simplify( (1/ x^3+6/x^2 +12 /x+8)^ (1/ 3)) simple ( (1/ x^3+6/x^2 +12 /x+8)^ (1/ 3)) The function facto...
Ngày tải lên: 12/08/2014, 21:21
matlab primer 7th edition phần 7 pot
... debugging code 18 7 helptools Help commands 18 8 winfun Microsoft Windows functions 18 9 demos Examples and demonstrations 19 0 local Preferences 19 0 symbolic Symbolic Math Toolbox 19 1 13 3 to ... values y(0) =1 and y' (1) =0. The symbolic solution to this ODE appears in Section 16 .12 , but here is the solution with initial values specified: 14 1 22. Help Top...
Ngày tải lên: 12/08/2014, 21:21
matlab primer 7th edition phần 8 doc
... cotangent Exponential exp Exponential expm1 Compute exp(x) -1 accurately log Natural logarithm log1p Compute log (1+ x) accurately log10 Common (base 10 ) logarithm log2 Base 2 logarithm, dissect ... pchip Piecewise cubic Hermite interpol. poly. interp1 1- D interpolation (table lookup) interp1q Quick 1- D linear interpolation interpft 1- D interpolation using FFT me...
Ngày tải lên: 12/08/2014, 21:21
matlab primer 7th edition phần 9 pps
... 18 1 Spreadsheet support xlsread Read Excel (xls) workbook xlswrite Write to Excel (xls) workbook xlsfinfo Check if file contains Excel workbook wk1read Read Lotus spreadsheet (wk1) ... spreadsheet (wk1) file wk1write Write Lotus spreadsheet (wk1) file wk1finfo Check if file contains Lotus worksheet str2rng Convert range string to numeric array wk1wrec Write a Lotus workshe...
Ngày tải lên: 12/08/2014, 21:21