matlab primer 7th edition phần 5 pptx
... the statement: vpa(ans, 25) symbolically gives the result to 25 significant digits: .8862269 254 52 758 01364908 35 You may wish to contrast these techniques with the MATLAB numerical integration ... set. 15. Sparse Matrix Computations A sparse matrix is one with mostly zero entries. MATLAB provides the capability to take advantage of the sparsity of matrices. 15. 1 Storage mo...
Ngày tải lên: 12/08/2014, 21:21
... IRUPDWORQJ fixed point, 15 digits IRUPDWVKRUWH scientific notation, 5 digits IRUPDWORQJH scientific notation, 15 digits IRUPDWVKRUWJ fixed or floating-point, 5 digits IRUPDWORQJJ ... The MATLAB commands GHOHWH and W\SH can be used to delete a file and display an M-file in the Command window, respectively. 2.8 MATLAB s path M-files must be in a directory accessi...
Ngày tải lên: 12/08/2014, 21:20
... can control. This system is called Handle Graphics. See Using MATLAB Graphics for more information. 12.2 Graphical user interface MATLAB s graphics system also provides the ability to add sliders, ... sparse matrix is one with mostly zero entries. MATLAB provides the capability to take advantage of the sparsity of matrices. 13.1 Storage modes MATLAB has two storage modes, full and...
Ngày tải lên: 12/08/2014, 21:20
matlab primer 6th edition phần 6 pptx
... for the MATLAB user. Key features of the Symbolic Math Toolbox are included in the Student Version of MATLAB. Since the Symbolic Math Toolbox is not part of the Professional Version of MATLAB, ... YSDDQV symbolically gives the result to 25 significant digits: You may wish to contrast these techniques with the MATLAB numerical integration functio...
Ngày tải lên: 12/08/2014, 21:20
matlab primer 7th edition phần 1 pdf
... input 49 8 .5 Performance measures 49 8.6 Efficient code 51 9. Calling C from MATLAB 53 9.1 A simple example 54 9.2 C versus MATLAB arrays 55 9.3 A matrix computation in C 55 9.4 MATLAB mx ... MATLAB Functions 21 5. 1 Constructing matrices 21 5. 2 Scalar functions 23 5. 3 Vector functions and data analysis 23 5. 4 Matrix functions 24 5. 5 The linsolve function 25 5...
Ngày tải lên: 12/08/2014, 21:20
matlab primer 7th edition phần 2 ppt
... rand(1 ,5) x = x(end:-1:1) To appreciate the usefulness of these features, compare these MATLAB statements with a C, Fortran, or Java routine to do the same operation. 5. MATLAB Functions MATLAB ... rotation of rows 3 and 5 of the matrix A to zero out the A(3,1) entry can be written as: a = A (5, 1) b = A(3,1) G = [a b ; -b a] / norm([a b]) A( [5 3], :) = G * A( [5 3], :...
Ngày tải lên: 12/08/2014, 21:20
matlab primer 7th edition phần 3 ppsx
... 54 MATLAB. In this chapter, we will just look at how to call a C routine from MATLAB. For more information, see Help: MATLAB: External Interfaces, or see the online MATLAB documents ... Without this, MATLAB must resize E one column larger in each iteration, slowing execution. M = magic(6) ; E = zeros(6 ,50 ) ; for j = 1 :50 E(:,j) = eig(M^j) ; end 9. Calling C from MATL...
Ngày tải lên: 12/08/2014, 21:20
matlab primer 7th edition phần 4 pps
... 'k' black 59 9.4 MATLAB mx and mex routines In the last example, the C routine calls several MATLAB routines with the prefix mx or mex. Routines with mx prefixes operate on MATLAB matrices ... way, you can write a routine that can be used from MATLAB or from a stand-alone C application, without MATLAB. 9.2 C versus MATLAB arrays MATLAB stores its arrays in co...
Ngày tải lên: 12/08/2014, 21:21
matlab primer 7th edition phần 6 potx
... factor(sym('4248')) factor(sym(' 454 9319348693')) factor(sym(' 454 931934 859 7')) 16.6 Two-dimensional graphs The MATLAB function fplot (see Section 12.3) provides ... symmetric positive- 120 n = 10 x = -5: .1 :5 ; y = 1 ./ (x.^2+1) ; p = polyfit(x, y, n) figure(2) ; clf ezplot(@(x) 1/(x^2+1)) hold on xx = -5: .01 :5 ; plot(xx, polyval(p,xx)...
Ngày tải lên: 12/08/2014, 21:21
matlab primer 7th edition phần 7 pot
... functions 151 specfun Specialized math functions 153 matfun Matrix functions - linear algebra 155 datafun Data analysis & Fourier transforms 157 polyfun Interpolation and polynomials 158 ... example, help general lists the Contents.m file of the directory MATLAB/ toolbox /matlab/ general (where MATLAB is the directory in which MATLAB is installed). Create a directory enti...
Ngày tải lên: 12/08/2014, 21:21