Вы находитесь на странице: 1из 6

" Simulink"

Matlab
|
Mathematica |
Mathcad
|
Maple |
Statistica |
Tabula |

Internet-
|

|

|

|
Download
|

" Simulink"

..,
...
: ()
Simulink MatLab.
1. .
:

y(x).
.

x'(t) + 2x(t) = sin(t),

x(0) = 0.

MatLab Simulink, Create a new Model.



,
Simulink Library Brouser.
Simulink Integrator ( Continuos).
, x. Sum () Gain () ( Math)
x' . sin(t) Sine Wave ( Sources),
, ,
Block Parameters . x(t) Scope.
. ,
, Autoscale.

http://www.exponenta.ru/educat/systemat/semenenko/odu/index.asp[13/08/2014 11:04:57 a.m.]

" Simulink"

Command Window - (File ==> New ==> Mfile). , f.m


( ).

:
>>
>>
>>
>>

t=(0:0.1:2);
y=f(t);
plot(t,y)
grid on

. , .

http://www.exponenta.ru/educat/systemat/semenenko/odu/index.asp[13/08/2014 11:04:57 a.m.]

" Simulink"

2. .
.
.
- .

: = 0.1; = 0.05; = 0.03; = 0.2; = 0.15.


- Simulink:

http://www.exponenta.ru/educat/systemat/semenenko/odu/index.asp[13/08/2014 11:04:57 a.m.]

" Simulink"

, : y1 = 2, y2 = 0.01.
, Scope XY-Graph,
:

http://www.exponenta.ru/educat/systemat/semenenko/odu/index.asp[13/08/2014 11:04:57 a.m.]

" Simulink"

MatLab - :
function dy=vlm(t,y)
dy=zeros(2,1);
dy(1)=y(1)*(0.1-0.05*y(2)-0.03*y(1));
dy(2)=-y(2)*(0.2-0.15*y(1));
, - 4-
( ode45):
> [T, Y] = ode45('vlm',[0 164],[2 0.01]);
ode45: - , , .
plot:
> plot(Y(:,1),Y(:,2));
>axis[0 4 0 4]
.
1. Simulink, .
MatLab ode45.
2. MatLab, .
3. Simulink :

http://www.exponenta.ru/educat/systemat/semenenko/odu/index.asp[13/08/2014 11:04:57 a.m.]

" Simulink"

6) y''- y = ex, y(0) = 0, y'(0) = 0.5 [0,1].

7) y''-2 y' = x2 -1, y(1) = -1/6, y'(1) = -3/4 [1,2].

8) y''- 2y' = 3ex, y(0.3) = 1.415, y'(0) = 5.83 [0.3, 0.6].

9) y''+ y' = 3x2, y(1) = -1, y'(1) = 2 [1,2].

MatLab ode45.


|
| | | | e-mail
|
ActiveCloud |
| Matlab | MSDN | -
: ? Ctrl+Enter
Copyright 1993-2014. Softline. .

: 15.07.14
01.09.00

http://www.exponenta.ru/educat/systemat/semenenko/odu/index.asp[13/08/2014 11:04:57 a.m.]

Вам также может понравиться