PRBS input to an ODE system
8 ビュー (過去 30 日間)
古いコメントを表示
Hi,I've generated a PRBS for an inlet flowrate with this code:
ns = 110; %s
ts = 30; %s
F = idinput(round(ns),'prbs',[0 1],[9 11]);
FinPRBS = iddata ([],F,ts);
Now, I want to pass this input to an ODE system like this:
function dXdt = systemresponse(~,X)
global A res F
Fo1 = (X(1)-X(2))/res(1);
Fi2 = Fo1;
Fo2 = X(2)/res(2);
% The differential system is set up:
dXdt(1) = 1/A(1)*(F - Fo1);
dXdt(2) = 1/A(2)*(Fi2 - Fo2);
dXdt = dXdt';
end
How can I do this? Thank you!
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!