Дисциплина «Компьютерное обеспечение инженерных задач»

  • Published on
    03-Jan-2016

  • View
    20

  • Download
    4

Embed Size (px)

DESCRIPTION

..., .. . - PowerPoint PPT Presentation

Transcript

  • 2 4 16 14 (MATLAB). ..., , . 201800 ..., ..

  • ..., ..

    , 2 .. .65. 42, 43 48. \ www.mts-sut.spb.ru

  • ..., ..

    1. MatLAB , , . , . III , , , . 12- 60- , . , - 2, , , . - .

    . 1.1.

  • ..., ..

    II- .. : (1680 . .., ) . , , , . . 1.2. (1680 . .., )

    . .1.3.

  • ..., ..

    1.4. , , - . , . , , . . , .

  • ..., ..

    - . , . . 1:1. , , . , . . 1.5. , .

  • ..., ..

    ( ) . , . . . . . . 1.6. 1628 . , , , . , , , . , , .

  • ..., ..

    , , , , , . , , . , , , , , . , , . . 1.7. , , . , . 20 . : -1730 , , -1840 , -1850 .

  • ..., ..

    . , , . , , , . . 1.8. :

  • ..., ..

    , . , , . . , . .., , , ..1.9.

  • ..., ..

    - , , . . . , . . 1.10.

  • ..., ..

    . , , , . .1.11. . 1980- . XIX , 3-4- -

  • ..., ..

    : ; MatLAB ; ; ; ; ; ; ; (, , .); . : ; ; MatLAB .

  • ..., ..

    _1200658221.vsd

  • ..., ..

    , . , . : .., .., .. . .: , 1994. 546 . .., .., .. . MATLAB. .: . 1994. 192 . .. MATLAB . .: , 1997. 350 . .. , .. , .. , .. . : . . .: - , 2003. 78 .

  • ..., ..

    . ( Simulink, NOCSYD) , . MATLAB, MathCAD, REDUCE, MACSYMA, DERIVE, MAPLE, Mathematica, Theorist. REDUCE, MACSYMA, DERIVE, MAPLE, Mathematica, Theorist . MathCAD . MATLAB , . . MATLAB . . 1.13. MathCad

  • ..., ..

    MATLAB , toolbox . Toolbox - , , . toolbox : (Control System); (Robust Control); (Optimization); (System Identification) 49,50]. (Spline); (Signal Processing); (Neural Network). 60-80- FORTRAN, , MATLAB toolbox.

  • ..., ..

    MATLAB >> . . =. ans, . MATLAB , ;. Windows, . MATLAB , . .

  • ..., ..

    MATLAB MATLAB - (). . . 1.15. MatLab global. global A. who, . who global, MATLAB..1.15.

  • ..., ..

    =[1 2 3 4 5] B=[1;3; 5; 7]. =[ 1 2 3 ; 4 5 6 ; 7 8 9]. : =::. : =6 : 0. 2 : 26. . : =eye(). =ones(,). : A=ones(6, 3). =zeros(,). : A=zeros(6, 3). =rand(,). : A=rand(6, 3)..1.16.

  • ..., ..

    , . . . : (,). A(1,2). . (). . , . . . : (). . . :

  • ..., ..

    . . , .

  • ..., ..

    MATLAB . : t = 1 : 5t = 1 2 3 4 5y = cos(t)y = 0.5403 -0.4161 -0.9900 -0.6536 0.2837z = y / tz = 0.0811 - , z(t)=cos(t)/t. , MATLAB - ./ - . :z = y ./ tz = 0.5403 -0.2081 -0.3300 -0.1634 0.0567

  • ..., ..

    MATLAB :plot() - . plot(,) - Y . .

    , : t = 10 : 0.1 : 10 ;x1 = sin(t) ;x2 = cos(t) ./ t ;plot(t,x1,t,x2)

  • ..., ..

    (.1.16) y=sin(t)/t (x/5)2+y2=1. . .

  • ..., ..

    . MatLAB fsolve(, ). . , : 'x*x-abs(x)'. , .1.17. fsolve . 7.9062e-008 0. M . fsolve . , fsolve . :fsolve('x*x-abs(x)',-2), ans = -1.0000; fsolve('x*x-abs(x)',0.6), ans = 1.0000;fsolve('x*x-abs(x)',0.4), ans = 7.9062e-008.

  • ..., ..

    MATLAB MatLAB . . *.M. MATLABRC.M. matlabpath =[...,...,] ; . M MatLAB, . . MatLAB %.

  • ..., ..

    . .1.18.. 1.18. - :

  • ..., ..

    , :if end :if else end . end. :d=b^2-4*a*c ;if d

  • ..., ..

    :for = : [ :] end . :for i=1 : 100 x(i) = sin(2*PI*i /100) ;end :for i= [1 2 4 8 16 32] x(i) = sin(2*PI*i /100) ;end

  • ..., ..

    for break. . 1.20. break

  • ..., ..

    break continue. . 1.21. continue

  • ..., ..

    . 1.22. - while :while end end. , :a=1 ;while a+1 != 1 a=a/2 ;enda .

  • ..., ..

    MatLAB : function = ( ) , M . - . . : function y=minf(x, n) y=x(1) ; for i=1:nif x(i)

  • ..., ..

    1 1 . . . 1.23. . 1.23. 1

  • ..., ..

    I. . x = 2 : 0.5 : 4 ; % Xy1 = a1*x.^3 + b1*x.^2+c1*x+d1 ; % y2 = a2*x.^3 + b2*x.^2+c2*x+d2 ; % plot( x, y1, x, y2) %

    . 1.24. fsolve() : A(1) = fsolve(a1*x^3+b1*x^2+c1*x+d(a2*x^3+b2*x^2+c2*x+d2), x01) A(k) = fsolve(a1*x^3+b1*x^2+c1*x+d(a2*x^3+b2*x^2+c2*x+d2), x0k) , x .

  • ..., ..

    II. , . . 1.25.

  • ..., ..

    , , . 1.26 : , (. 1.27).

    . 1.26.

  • ..., ..

    . 1.27. - function y = prim( x )if x < x1 y = y1 ;else if x < x2 y = y1 + (y2y1) / (x2x1)*(xx1) ; else y = y2 ; endend

  • ..., ..

    , : path( matlabpath, e:\stud\mi411). , , : prim( 6.3 ). , : dt = ( tend t0 ) / (N 1) ; % t = t0 : dt : tend ; % u = a1*sin(w1*t + f1)+a2*sin(w2*t + f2) +e ; % for i = 1 : N y = prim( u(i) ) ; % end plot(t, u, t, y) % , / : plot( u, y ).

  • ..., ..

    II . 1.28. . 1.28. II

Recommended

View more >