continuous to discrete and plotting
古いコメントを表示
[EDIT: 20110527 15:15 CDT - reformat - WDR]
hey and thanks in advance.
i have a continuous system(A,B,C,D matrices) and what i'm trying to do is:
1. plot on one graph the continuous and equivalent discrete systems response to a sequence of steps moved in time
2. the same only for a run entry
thanks again,
hagai
3 件のコメント
Walter Roberson
2011 年 5 月 27 日
Sorry, I do not understand what you mean by a "run entry" ?
hagai bar
2011 年 5 月 28 日
Walter Roberson
2011 年 5 月 28 日
You only mentioned A, B, C, D matrices before, so I'm not sure how u1 and u2 and t fit in to this?
Is this a transfer system? A control system? A differential equation? Something else?
採用された回答
その他の回答 (2 件)
Walter Roberson
2011 年 5 月 27 日
0 投票
Paulo Silva
2011 年 5 月 29 日
clf
hold on
%continous response
%TStart is the starting time of the step
%TIncrement is the increment of the time vector
%TEnd is the end time of your step (when input returns to zero)
sys = ss(A,B,C,D);
step(sys,TStart:TIncrement:TEnd) %choose a small TIncrement
%discrete response
sys = ss(A,B,C,D,Ts); %Ts is your sampling time
step(sys,TStart:Ts:TEnd)
カテゴリ
ヘルプ センター および File Exchange で Mathematics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!