MATLAB Demystified phần 1 pps
... = Columns 1 through 10 1. 0000 1. 1052 1. 2 214 1. 3499 1. 4 918 1. 6487 1. 82 21 2. 013 8 2.2255 2.4596 Column 11 2. 718 3 Or we could have y = x 2 : >> y = x^2 y = Columns 1 through 10 0 0. 010 0 0.0400 ... Class V 1x1 8 double array a 1x1 8 double array ans 1x1 16 double array (complex) r 1x1 8 double array s 1x1 8 double array t 1x1 8 double array x 1x1 8 doub...
Ngày tải lên: 12/08/2014, 21:20
MATLAB Demystified phần 5 pps
... taylor(sin(x),20) s = x 1/ 6*x^3 +1/ 120*x^5 1/ 5040*x^7 +1/ 362880*x^9 1/ 39 916 800*x ^11 +1/ 6227020800*x ^13 1/ 1307674368000*x ^15 +1/ 355687428096000*x ^17 1/ 1 216 4 510 0408832000*x ^19 The representation this ... typing: >> s.x (1) ans = 1/ 9*exp(–lambertw( 1/ 9*log(5)*5^ (1/ 9)) +1/ 9*log(5)) +1/ 9 >> s.x(2) ans = 1/ 9*exp(–lambertw( 1, 1/ 9*log(5)*5^ (1/ 9)) +1/ 9...
Ngày tải lên: 12/08/2014, 21:20
MATLAB Demystified phần 6 pps
... by the ode23 solver: y = 2.0000 2 .15 93 2. 511 0 2.8080 2.9848 2. 916 9 2.6344 2. 212 3 1. 7999 1. 4 512 1. 1892 1. 0323 1. 011 5 1. 1536 1. 4337 1. 7689 1. 9996 With the precision used to present ... x 3 – 3x 2 + 3x 0 0.2 0.4 0.6 0.8 1 1.2 1. 4 1. 6 1. 8 2 0 0.2 0.4 0.6 0.8 1 1.2 1. 4 1. 6 1. 8 2 x x 3 − 3x 2 + 3x 16 4 MATLAB Demystifi ed SOLUT...
Ngày tải lên: 12/08/2014, 21:20
MATLAB Demystified phần 2 pptx
... inverse must exist. MATLAB spits it out for us: >> T = inv(S) T = –0.9259 0.4 815 0.4 815 0 .11 11 –0.6296 0 .15 74 0.6574 0.0556 –0.5926 0 .14 81 0 .14 81 0 .11 11 0.6667 –0 .16 67 –0 .16 67 0 CHAPTER ... 2 3 61 60 6 7 57 9 55 54 12 13 51 50 16 17 47 46 20 21 43 42 24 40 26 27 37 36 30 31 33 32 34 35 29 28 38 39 25 41 23 22 44 45 19 18 48 49 15 14 52 53 11...
Ngày tải lên: 12/08/2014, 21:20
MATLAB Demystified phần 3 ppt
... = [0:0. 01: 5]; >> y = exp( 1. 2*x).*sin(20*x); >> subplot (1, 2 ,1) By passing (1, 2, 1) to subplot, we have told MATLAB that we are going to create an array with 2 panes and 1 row, and ... shown in Figure 3 -13 . Now let’s make a plot of y = e −3/2x sin(5x + 3). First we try 0 ≤ x ≤ 5, 1 ≤ y ≤ 1. >> y = exp( 1. 5*x).*sin(5*x+3); >> plot(x,y), axis([0 5 1...
Ngày tải lên: 12/08/2014, 21:20
MATLAB Demystified phần 4 pptx
... 12 0 MATLAB Demystifi ed Quiz 1. The weights in pounds of a set of male students are described as follows: Weight Frequency 13 0 2 13 8 1 145 3 15 0 6 15 2 1 155 3 16 0 1 164 1 165 3 16 7 4 17 0 3 17 2 ... Garcia Simpson Smith 90 10 0 10 5 8 80–89 13 10 17 70–79 18 20 15 60–69 3 5 2 50–59 0 3 1 Generate grouped and stacked histograms of the data. SOLUTION 4 -1...
Ngày tải lên: 12/08/2014, 21:20
MATLAB Demystified phần 7 docx
... then: >> int(pi*exp(–2*x) ,1, 2) ans = 1/ 2*pi*exp(–4) +1/ 2*pi*exp(–2) Numerically we find this value is 0 .18 38. 1 1 .1 1.2 1. 3 1. 4 1. 5 1. 6 1. 7 1. 8 1. 9 2 0 .15 0.2 0.25 0.3 0.35 x exp(−x) Figure ... EXAMPLE 8 -11 The velocity of a rocket sled on a track is measured once a second for 10 seconds. The velocity in ft/s is found to be: t 12 3 4 5 6 7 8 9 10 v(t)...
Ngày tải lên: 12/08/2014, 21:20
MATLAB Demystified phần 8 docx
... MATLAB: >> time = [0,0.5 ,1. 0 ,1. 5,2,2.5,3,3.5,4,5,6,6 .1, 7]; >>temp = [300,2 81, 2 61, 244,228, 214 ,202 ,19 1 ,18 1 ,16 4 ,15 1 ,14 9 ,14 1]; Let’s plot the data, which is shown in Figure 10 -5. Now we call polyfit ... 228 2.5 214 3.0 202 3.5 19 1 4.0 18 1 5.0 16 4 6.0 15 1 6 .1 149 7.0 14 1 Try a third order polynomial fit to the data and estimate how good the fit...
Ngày tải lên: 12/08/2014, 21:20