0
  1. Trang chủ >
  2. Công Nghệ Thông Tin >
  3. Kỹ thuật lập trình >

Engineering Matlab Problem Solving phần 1 doc

Engineering Matlab Problem Solving phần 1 doc

Engineering Matlab Problem Solving phần 1 doc

... 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.2 ProblemSolvingExample 4 1. 3 ... 213 10 .3Interpolation 215 10 .4AppliedProblemSolving:HumanHearing 219 11 Integration and Differentiation 223 11 .1NumericalIntegration 223 11 .2 Numerical Differentiation . . 230 12 Strings, Time, Base ... whosName Size Bytes Classaverage_cost 1x1 8 double arraybolts 1x1 8 double arraycost 1x1 8 double arrayitems 1x1 8 double arrayrivets 1x1 8 double arrayscrews 1x1 8 double arrayGrand total is...
  • 29
  • 227
  • 0
Engineering Matlab Problem Solving phần 3 docx

Engineering Matlab Problem Solving phần 3 docx

... .5*pi .6*pi .7*pi .8*pi .9*pi pi]x=Columns 1 through 70 0. 314 2 0.6283 0.9425 1. 2566 1. 5708 1. 8850Columns 8 through 11 2 .19 91 2. 513 3 2.8274 3 .14 16 Matlab functions can be applied to vectors ... identity j2= 1, and writing the resultin rectangular form:z 1 z2=(x 1 + jy 1 )(x2+ jy2)= x 1 x2+ jx 1 y2+ jx2y 1 + j2y 1 y2=(x 1 x2− y 1 y2)+j(x 1 y2+ x2y 1 )Multiplication ... θ59 2 4 630 210 6024090270 12 0300 15 0330 18 0 0z1z2z1*z2Figure 4 .11 : Polar plot of complex number multiplication80>> z = 1 + j*sqrt(3)z= 1. 0000+ 1. 7321i>> theta =...
  • 28
  • 278
  • 0
Engineering Matlab Problem Solving phần 7 docx

Engineering Matlab Problem Solving phần 7 docx

... simulations:2345 213 314 5225563635 15 0The displayed output of the script is:0 25.0000 10 .0000 18 .9 811 20.0000 15 .377330.0000 13 . 219 640.0000 11 .927750.0000 11 .15 4260.0000 10 .6 910 70.0000 10 . 413 880.0000 10 .247790.0000 ... tails, 1: heads’), title(’Absolute Frequency Histogram for 50 Coin Flips’)The output displayed by the script:coin =Columns 1 through 12 11 0 010 111 011 Columns 13 through 24 10 00 011 010 11 Columns ... A =1: 9, B=8-AA= 12 3456789B=76543 210 -1 >> tf1 = A <=4tf1 = 11 110 0000>>tf2=A>Btf2 =000 011 111 >> tf3 = (A==B)tf3 =00 010 0000>> tf4 = B-(A>2)tf4 =7643 210 -1- 2•...
  • 28
  • 199
  • 0
A Guide to MATLAB for Chemical Engineering Problem Solving phần 1 docx

A Guide to MATLAB for Chemical Engineering Problem Solving phần 1 docx

... [0: 0 .1 :1. 5]time = Columns 1 through 7 0 0 .10 00 0.2000 0.3000 0.4000 0.5000 0.6000 Columns 8 through 14 0.7000 0.8000 0.9000 1. 0000 1. 1000 1. 2000 1. 3000 Columns 15 through 16 1. 4000 1. 5000Individual ... ones.Example:a = 1 2 3 4 5 6 7 8 9»e = [[zeros(2,3);ones (1, 3)] a]e = 0 0 0 1 2 3 0 0 0 4 5 6 1 1 1 7 8 9»e = [e e]e = 0 0 0 1 2 3 0 0 0 1 2 3 0 0 0 4 5 6 0 0 0 4 5 6 1 1 1 7 8 9 1 1 1 7 8 9Matrix ... ChE465KDH v.2 .1. 1 p. 11 Print date: 10 /4/00row vector in decreasing power) a = 3 2 5»b = [19 -7 -13 ]b = 19 -7 -13 »conv(a,b)ans = 57 17 42 - 61 -65Answer:57X4 + 17 X3 + 42X2 - 61X - 65Exercise:What...
  • 12
  • 427
  • 0
Engineering Matlab Problem Solving phần 2 pptx

Engineering Matlab Problem Solving phần 2 pptx

... base 10 is represented bythe binary or base 2 value 0 011 010 1, denoted by53 10 = 0 011 010 12In base 10 , this means53 10 =5 10 1 +3× 10 0Similarly,0 011 010 12=0× 27+0× 26 +1 25 +1 24+0× ... format long>> 5.78/57 .13 ans =0 .10 117 27638 718 7>> format short>> ansans =0 .10 12Thus, the short result is displayed as 0 .10 12 instead of 0 .10 11, which would have been the ... means53 10 =5 10 1 +3× 10 0Similarly,0 011 010 12=0× 27+0× 26 +1 25 +1 24+0× 23 +1 22+0× 2 1 +1 20=32 10 +16 10 +4 10 +1 10Thus, each bit position represents an increasing power of 2, beginning...
  • 28
  • 239
  • 0
Engineering Matlab Problem Solving phần 4 pptx

Engineering Matlab Problem Solving phần 4 pptx

... at 10 0= 1, ending at 10 2= 10 0 and having 11 values:>> logspace(0,2 ,11 )ans =Columns 1 through 7 1. 0000 1. 5849 2. 511 9 3.9 811 6.3096 10 .0000 15 .8489Columns 8 through 11 25 .11 89 39. 810 7 ... − startnumber − 1 For example:>> x=linspace(0,pi ,11 )x=Columns 1 through 70 0. 314 2 0.6283 0.9425 1. 2566 1. 5708 1. 8850Columns 8 through 11 2 .19 91 2. 513 3 2.8274 3 .14 16In this example:increment ... command figure(n)97>> x=(0:0 .1: 1)*pix=Columns 1 through 70 0. 314 2 0.6283 0.9425 1. 2566 1. 5708 1. 8850Columns 8 through 11 2 .19 91 2. 513 3 2.8274 3 .14 16As in addressing, (0:5) creates...
  • 28
  • 180
  • 0
Engineering Matlab Problem Solving phần 5 pdf

Engineering Matlab Problem Solving phần 5 pdf

... = poly(r)a= 1. 0000 -2.0000 -3.0000 10 .0000Example 6 .1 Finding the depth of a well using roots of a polynomial 11 8X=-2 -10 12-2 -10 12-2 -10 12-2 -10 12Y= -1 -1 -1 -1 -1 00000 11 111 22222After ... Matlab script:>>a= [1- 30 -12 ];>>b=[4-25 -16 ];>> c = conv(a,b)c=4 -14 11 -35 58 -9 26 -32 11 4 1 −0.5 0 0.5 1 1.5 2 2.5 3 3.5 400.5 1 1.522.533.544.5xyFigure 6 .14 : ... shown in Figure 6 .11 . Note that you need to know something about the−2 1 0 1 2 1 0 1 2−0.500.5xMesh Plotyz−2 1 0 1 2 1 0 1 2−0.500.5xSurface PlotyzFigure 6 .11 : Mesh and surface...
  • 28
  • 293
  • 0
Engineering Matlab Problem Solving phần 8 ppsx

Engineering Matlab Problem Solving phần 8 ppsx

... a 11 (a22a33− a23a32) − a 12 (a 21 a33− a23a 31 )+a 13 (a 21 a32− a22a 31 )= a 11 a22a33− a 11 a23a32− a 12 a 21 a33+ a 12 a23a 31 + a 13 a 21 a32− a 13 a22a 31 Thus, ... elements of C:c 11 =2 51  1 1 5=2 1+ 5·( 1) +1 5=2c23=03 1 2−2 1 =0·2+3·(−2) 1 1= −7 19 0Thus, forA = 13 15 the determinant is|A| =1 5 −3 · ( 1) =8For a ... A 1 bExample:>> A = [3 2 -1; -1 3 2; 1 -1 -1] A=32 -1 -1 3 2 1- 1 -1 >> b = [10 ; 5; -1] b= 10 5 -1 >> x = inv(A)*bx=-2.00005.0000-6.0000>> A*xans = 10 .00005.0000 -1. 0000If the system...
  • 28
  • 315
  • 0
Engineering Matlab Problem Solving phần 9 pot

Engineering Matlab Problem Solving phần 9 pot

... following table:Time (s) Accel (m/s2)00 12 2437 411 517 6247328 41 948 10 51 A script to estimate the velocity:t = [0 :10 ];a = [0,2,4,7 ,11 ,17 ,24,32, 41, 48, 51] ;v = cumtrapz(t,a);disp([’ time accel ... velocity’])disp([t’,a’,v’])227 10 1 10 1 Volume (cups − log scale)Flow Rate (cups/sec − log scale)Model Experimental5 6 7 8 9 10 11 12 13 14 15 0 .1 0 .15 0.20.25Volume (cups)Flow Rate ... yk)xk=2NNk =1 a 1 x2k+ a2xk− xkyk=2NNk =1 x2ka 1 +Nk =1 xka2−Nk =1 xkyk=0∂MSE∂a2= 1 NNk =1 2(a 1 xk+ a2− yk)=2NNk =1 xka 1 + Na2−Nk =1 yk=0Ignoring...
  • 28
  • 121
  • 0
Engineering Matlab Problem Solving phần 10 ppsx

Engineering Matlab Problem Solving phần 10 ppsx

... ’HH:MM:SS PM’ 3:45 :17 PM 15 ’HH:MM’ 15 :45 16 ’HH:MM PM’ 3:45 PM 17 ’QQ-YY’ Q1-96 18 ’QQ’ Q1Examples:>> ds = datestr(d)ds = 10 -Jun -19 98 10 :30 :13 >> datestr(d ,14 )ans = 10 :30 :13 AMThe function ... 01- Mar -19 95 15 :45 :17 2 ’mm/dd/yy’ 03/ 01/ 953 ’mmm’ Mar4 ’m’ M5 ’mm’ 36 ’mm/dd’ 03/ 01 7 ’dd’ 1 8 ’ddd’ Wed9 ’d’ W 10 ’yyyy’ 19 95 11 ’yy’ 95 12 ’mmmyy’ Mar95 13 ’HH:MM:SS’ 15 :45 :17 14 ’HH:MM:SS ... sym([2 ,1; 4,3])A=[2 ,1] [4,3]>> Ainv = inv(A)Ainv =[ 3/2, -1/ 2][ -2, 1] >> C = A*AinvC= [1, 0][0 ,1] >> B = sym( [1 3 0; -1 5 2; 1 2 1] )B= [1, 3,0][ -1, 5, 2] [1, 2 ,1] >>...
  • 37
  • 290
  • 0

Xem thêm

Từ khóa: Nghiên cứu sự hình thành lớp bảo vệ và khả năng chống ăn mòn của thép bền thời tiết trong điều kiện khí hậu nhiệt đới việt namNghiên cứu tổ hợp chất chỉ điểm sinh học vWF, VCAM 1, MCP 1, d dimer trong chẩn đoán và tiên lượng nhồi máu não cấpMột số giải pháp nâng cao chất lượng streaming thích ứng video trên nền giao thức HTTPGiáo án Sinh học 11 bài 13: Thực hành phát hiện diệp lục và carôtenôitGiáo án Sinh học 11 bài 13: Thực hành phát hiện diệp lục và carôtenôitGiáo án Sinh học 11 bài 13: Thực hành phát hiện diệp lục và carôtenôitGiáo án Sinh học 11 bài 13: Thực hành phát hiện diệp lục và carôtenôitĐỒ ÁN NGHIÊN CỨU CÔNG NGHỆ KẾT NỐI VÔ TUYẾN CỰ LY XA, CÔNG SUẤT THẤP LPWANĐỒ ÁN NGHIÊN CỨU CÔNG NGHỆ KẾT NỐI VÔ TUYẾN CỰ LY XA, CÔNG SUẤT THẤP LPWANPhối hợp giữa phòng văn hóa và thông tin với phòng giáo dục và đào tạo trong việc tuyên truyền, giáo dục, vận động xây dựng nông thôn mới huyện thanh thủy, tỉnh phú thọTrả hồ sơ điều tra bổ sung đối với các tội xâm phạm sở hữu có tính chất chiếm đoạt theo pháp luật Tố tụng hình sự Việt Nam từ thực tiễn thành phố Hồ Chí Minh (Luận văn thạc sĩ)Phát hiện xâm nhập dựa trên thuật toán k meansNghiên cứu tổng hợp các oxit hỗn hợp kích thƣớc nanomet ce 0 75 zr0 25o2 , ce 0 5 zr0 5o2 và khảo sát hoạt tính quang xúc tác của chúngSở hữu ruộng đất và kinh tế nông nghiệp châu ôn (lạng sơn) nửa đầu thế kỷ XIXTổ chức và hoạt động của Phòng Tư pháp từ thực tiễn tỉnh Phú Thọ (Luận văn thạc sĩ)BT Tieng anh 6 UNIT 2Giáo án Sinh học 11 bài 15: Tiêu hóa ở động vậtBÀI HOÀN CHỈNH TỔNG QUAN VỀ MẠNG XÃ HỘIHIỆU QUẢ CỦA MÔ HÌNH XỬ LÝ BÙN HOẠT TÍNH BẰNG KIỀMQUẢN LÝ VÀ TÁI CHẾ NHỰA Ở HOA KỲ