matlab primer 7th edition phần 2 ppt

matlab primer 7th edition phần 2 ppt

matlab primer 7th edition phần 2 ppt

... example, either: [1 2 3 4] .* [1 2 3 4] [1 2 3 4] .^ 2 will yield [1 4 9 16]. Try it. This is particularly useful when using MATLAB graphics. Also compare A ^2 with A. ^2. 3.5 Relational operators ... For example, A (2, 3) denotes the entry in the second row, third column of matrix A. Try: A = [1 2 3 ; 4 5 6 ; -1 7 9] A (2, 3) Next, create a column vector, x, with:...

Ngày tải lên: 12/08/2014, 21:20

23 366 0
matlab primer 6th edition phần 2 pptx

matlab primer 6th edition phần 2 pptx

... columns 2 and 4 of $. Such subscripting can be used on both sides of an assignment statement: $>@ % © 20 02 by CRC Press LLC in the directory, grouped by file type. The MATLAB ... respectively. 2. 8 MATLAB s path M-files must be in a directory accessible to MATLAB. M-files in the current directory are always accessible. The current list of directories i...

Ngày tải lên: 12/08/2014, 21:20

17 291 0
matlab primer 7th edition phần 5 pptx

matlab primer 7th edition phần 5 pptx

... e −x 2 −y 2 over the square [ -2, 2] x [ -2, 2] as follows: xx = -2: .2: 2 ; yy = xx ; [x, y] = meshgrid(xx, yy) ; z = exp(-x. ^2 - y. ^2) ; mesh(z) 84 14 .2 Graphical user interface MATLAB s ... 98 1 /2* pi^(1 /2) Then the statement: vpa(ans, 25 ) symbolically gives the result to 25 significant digits: .88 622 6 925 4 527 580136490835 You may wish to contrast these...

Ngày tải lên: 12/08/2014, 21:21

23 318 0
matlab primer 6th edition phần 6 pptx

matlab primer 6th edition phần 6 pptx

... toolbox lets you represent matrices in symbolic form as well as MATLAB s numeric form. Given the numeric matrix: D PDJLF © 20 02 by CRC Press LLC In the first case the result is given in ... integrals you can try are: LQW[A LQWORJ[ © 20 02 by CRC Press LLC gives the numeric result:  MATLAB s numeric computations are done in approxim...

Ngày tải lên: 12/08/2014, 21:20

17 304 0
matlab primer 7th edition phần 1 pdf

matlab primer 7th edition phần 1 pdf

... video support 183 22 .22 Time and dates 184 22 .23 Data types and structures 184 22 .24 Version control 188 22 .25 Creating and debugging code 188 22 .26 Help commands 189 22 .27 Microsoft Windows ... graphs 169 22 .16 Handle Graphics 1 72 22 .17 Graphical user interface tools 174 22 .18 Character strings 177 22 .19 Image and scientific data 179 22 .20 File input/output 180 22 .2...

Ngày tải lên: 12/08/2014, 21:20

23 426 0
matlab primer 7th edition phần 3 ppsx

matlab primer 7th edition phần 3 ppsx

... 44 f = @sqrt f (2) sqrt (2) The str2func function converts a string to a function handle. For example, f = str2func('sqrt') f (2) Function handles can refer to built-in MATLAB functions, ... find out what a function handle refers to, use func2str or functions. Try these examples: func2str(f) func2str(g) func2str(norm2) func2str(resid) functions(f) Cell arrays can c...

Ngày tải lên: 12/08/2014, 21:20

23 277 0
matlab primer 7th edition phần 4 pps

matlab primer 7th edition phần 4 pps

... each data set plotted in a separate subplot: subplot (2, 2,1) plot(x,y1, ' ') subplot (2, 2 ,2) plot(x,y2, ':') subplot (2, 2,[3 4]) plot(x,y3, 'o') Other specialized ... 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 column m...

Ngày tải lên: 12/08/2014, 21:21

23 304 0
matlab primer 7th edition phần 6 potx

matlab primer 7th edition phần 6 potx

... more examples: Y = solve(cos(x) - x) Z = solve(x ^2 + 2* x - 1) pretty(Z) a = solve(x ^2 + y ^2 + z ^2 + x*y*z) pretty(a) b = solve(x ^2 + y ^2 + z ^2 + x*y*z, y) pretty(b) a is a solution in the ... following 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)^(...

Ngày tải lên: 12/08/2014, 21:21

23 341 0
matlab primer 7th edition phần 7 pot

matlab primer 7th edition phần 7 pot

... 127 Y = dsolve('D2y + y = t ^2& apos;, 'y(0)=1', 'Dy(0)=0', 't') Define y 1 =y and y 2 =y'. The new system is y 2 '=t 2 -y 1 and y 1 '=y 2 . ... correctly reports that 2 is a double root of (x -2) ^2. Try: syms x solve((x -2) ^2) s = solve((x -2) ^2- 1e- 12) fb(s(1)) fb(s (2) ) The zeros of fb can be found numerically...

Ngày tải lên: 12/08/2014, 21:21

23 323 0
matlab primer 7th edition phần 8 doc

matlab primer 7th edition phần 8 doc

... 22 . 12 Annotation and plot editting help scribe Graph annotation annotation Create annotation objects for figures colorbar Display coloar bar (color scale) legend Graph legend 22 .13 ... transforms cart2sph Cartesian to spherical coordinates cart2pol Cartesian to polar coordinates pol2cart Polar to Cartesian coordinates sph2cart Spherical to Cartesian coordinates hsv2...

Ngày tải lên: 12/08/2014, 21:21

23 315 0
w