Re: [問題] 非線性控制系統的模擬?已回收

看板MATLAB作者 (幫解MATLAB難題囧)時間15年前 (2008/10/25 13:35), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串2/2 (看更多)
※ 引述《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
simulink 也可以做非線性模擬啊
10/25 15:56, 1F

10/26 02:14, , 2F
喔? 可以教學一下嗎? 還是私下跟您要檔案...^^
10/26 02:14, 2F
文章代碼(AID): #190h07AF (MATLAB)
文章代碼(AID): #190h07AF (MATLAB)