Re: [問題] 非線性控制系統的模擬?已回收
※ 引述《wpd (??)》之銘言:
: 之前我只碰過一些
: 線性的state space 或 一些古典Bode plot之類的小作業
: 算是嫩嫩新手
: 想請教一下....
: 在state space下
: .
: x = A x + B u + F
: y = C x
: A B C都是線性的
: 只有F是個非線性外擾項
: 此系統要以MATLAB跑模擬出圖 (還會再加些觀測器之類的東西)
: 是需要用到simulink嗎??
: 在m-file裡有指令可行嗎??
要使用 simulink 必須要先線性化
後求出轉換函數才可以用
也可以線性化後利用 函數 ss 來模擬
以下為非線性模擬
-------------------------------------------------------------------
function pttex116
% Considering one nonlinear control system
% Applying DAE equation modeling
% M is singular matrix for DAE
% Disturbance is time-dependent function sin(t)
M =[1 0
0 0];
options = odeset('Mass',M);
y0 = [0;1e-3];
tspan = [0 10];
[t x] = ode15s(@nonlinear,tspan,y0,options);
plot(t,x)
legend('x','y')
function f = nonlinear(t,x)
% x(1) = x , x(2) = y;
f = zeros(2,1);
A = -0.1;
B = 1; % unit step
C = 10;
F = sin(t);
f(1) = A.*x(1) + B + F;
f(2) = C.*x(1) - x(2);
----------------------------------------------
當然這是非常簡單的範例啦
要在難得要下點功夫下去了
--
1.MATLAB programming 2.ASPEN process simulation package
3.FORTRN programming 4.Advance Engineering Mathematics
5.Process Control Theory
6.Chemical Engineering Basic Theory(Kinetic.thermodynamics.transport)
7.Numerical Method and Analysis
8.MATLAB Toolbox.Simulink system basic design
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 124.9.132.249
推
10/25 15:56, , 1F
10/25 15:56, 1F
→
10/26 02:14, , 2F
10/26 02:14, 2F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):