필터 지우기
필터 지우기

continuous to discrete and plotting

조회 수: 3 (최근 30일)
hagai bar
hagai bar 2011년 5월 27일
[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
hagai bar
hagai bar 2011년 5월 28일
i'm trying to get the system response to
u1= 1 0<=t<1
2 1<=t<2
3 2<=t<3
0 t>3
and
u2= t 0<=t<=3
0 t>3
trying to get the contiuous and discrete response to u1 and u2
Walter Roberson
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?

댓글을 달려면 로그인하십시오.

채택된 답변

hagai bar
hagai bar 2011년 6월 17일
thanks, ended up using c2d

추가 답변 (2개)

Walter Roberson
Walter Roberson 2011년 5월 27일
You might want to use a stairs() plot.

Paulo Silva
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)

카테고리

Help CenterFile Exchange에서 Oceanography and Hydrology에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by