Engineering Matlab Problem Solving phần 7 docx
... script is: 0 25.0000 10.0000 18.9811 20.0000 15. 377 3 30.0000 13.2196 40.0000 11.9 277 50.0000 11.1542 60.0000 10.6910 70 .0000 10.4138 80.0000 10.2 477 90.0000 10.1483 100.0000 10.0888 The resulting ... 2.2×10 −16 , resolving the divide-by-zero problem. >> x = x + (x==0)*eps x= -1.0000 -0.66 67 -0.3333 0.0000 0.3333 0.66 67 1.0000 >> sin(x)./x ans = 0.8415 0.9 276 0.9816...
Ngày tải lên: 12/08/2014, 16:21
... .2*pi .3*pi .4*pi .5*pi .6*pi .7* pi .8*pi .9*pi pi] x= Columns 1 through 7 0 0.3142 0.6283 0.9425 1.2566 1. 570 8 1.8850 Columns 8 through 11 2.1991 2.5133 2.8 274 3.1416 Matlab functions can be applied ... AF*sin(15*pi/180)/sin(E*pi/180) DE=CF-CD-EF The displayed results from Matlab: AC = 490.0000 D= 105 CD = 253.64 27 CF = 946.6 073 F= 30 56 Exponential Representation: The base of...
Ngày tải lên: 12/08/2014, 16:21
... our observations. 7 Section 1 Engineering Problem Solving Engineering often involves applying a consistent, structured approach to the solving of problems. A general problem- solving approach and ... most basic Matlab command is the mathematical expression, which has the following prop- erties: 15 Contents 1 Engineering Problem Solving 1 1.1 Problem- SolvingProcess 1 1...
Ngày tải lên: 12/08/2014, 16:21
Engineering Matlab Problem Solving phần 2 pptx
... absolute difference |x − y| is called the roundoff error. 27 For example: >> format long >> 5 .78 / 57. 13 ans = 0.101 172 763 871 87 >> format short >> ans ans = 0.1012 Thus, the ... supported by Matlab. Two Matlab functions, realmax and realmin, display the largest and the smallest numbers, respectively, that can be represented: >> realmax ans = 1 .79 77e+...
Ngày tải lên: 12/08/2014, 16:21
Engineering Matlab Problem Solving phần 4 pptx
... figure. The command figure(n) 97 >> x=(0:0.1:1)*pi x= Columns 1 through 7 0 0.3142 0.6283 0.9425 1.2566 1. 570 8 1.8850 Columns 8 through 11 2.1991 2.5133 2.8 274 3.1416 As in addressing, (0:5) ... example: >> x=linspace(0,pi,11) x= Columns 1 through 7 0 0.3142 0.6283 0.9425 1.2566 1. 570 8 1.8850 Columns 8 through 11 2.1991 2.5133 2.8 274 3.1416 In this example: increment =...
Ngày tải lên: 12/08/2014, 16:21
Engineering Matlab Problem Solving phần 5 pdf
... evaluate the polynomial at the roots: >> P= polyval(p,r) P= 1.0e-013 * -0.0355+ 0.1 377 i -0.0355- 0.1 377 i 0. 071 1 While P (r) is not exactly zero, due to the limitations on numerical accuracy, for ... elements of each column of the matrix. >>B=[-1 170 ;-3558;144-8] B= -1 170 -3558 144-8 >> min(B) ans = -3 1 4 -8 >> max(B) ans = 1 578 Example 7. 1 Minimum cost ta...
Ngày tải lên: 12/08/2014, 16:21
Engineering Matlab Problem Solving phần 8 ppsx
... that rows become columns and columns become rows. For example: >>A=[21;54 ;79 ] 1 87 A= 21 54 79 >>B=A’ B= 2 57 149 Identity Matrix An identity matrix is a matrix with ones on the main diagonal ... A Confirming >> A = [1 2 3;4 5 6 ;7 8 9] A= 123 456 78 9 >> I = eye(3) I= 100 010 001 >> I*A ans = 123 456 78 9 >> A*I ans = 123 456 78 9 Matrix Inverse T...
Ngày tải lên: 12/08/2014, 16:21
Engineering Matlab Problem Solving phần 9 pot
... script: a= 20.8286 3 .76 19 err = 3 .76 19 4.5905 -14.5810 -1 .75 24 10. 076 2 -2.0952 MSE = 59.4698 RMSE = 7. 71 17 Thus, the best linear fit is ˆy =20.8286x +3 .76 19 and the root mean squared error is 7. 71, lower ... 3 0000 1202552 2606290 368 679 1 477 8293 5 110 103 96 Storing this data in a matrix and interpolating at the time 2.6 seconds: >> x = (0:5)’; >> y(:,1) = [0,2...
Ngày tải lên: 12/08/2014, 16:21
Engineering Matlab Problem Solving phần 10 ppsx
... is a forward difference approximation. % Generate noisy data x = 0:0.1:1; y = [-0.4 47 1. 978 3.28 6.16 7. 08 7. 34 7. 66 9.56 9.48 9.30 11.2]; % 2nd degree curve fit a = polyfit(x,y,2); xi = linspace(0,1,101); yi ... number. Examples: >> t = clock t= 1998 6 10 10 18 59. 57 >> date ans = 10-Jun-1998 >> format long >> d = now d= 7. 299164 376 449 074 e+005 The date...
Ngày tải lên: 12/08/2014, 16:21
A Guide to MATLAB for Chemical Engineering Problem Solving phần 1 docx
... instructor. Matlab Guide: ChE465 KDH v.2.1.1 p. 11 Print date: 10/4/00 row vector in decreasing power) a = 3 2 5 »b = [19 -7 -13] b = 19 -7 -13 »conv(a,b) ans = 57 17 42 -61 -65 Answer: 57X 4 ... times you may see Matlab referred to as: Matlab, Matlab/ S, Matlab/ Simulink, or just Simulink. Don't let this confuse you, in each case you are still using Matlab. WHERE TO...
Ngày tải lên: 06/08/2014, 13:22