What is the method to get step response of differential order system?

6 views (last 30 days)
Should I do laplace first and then do a step response of the laplace.
I have never used Matlab to such degree and am very confused. There are a lot of links online but none are clear. How do I exactly use the laplace transform in Matlab, how to plug in differential coefficients and order?
laplace(f,trans_var,eval_point)
Then do I use: step(sys,t)
I am so confused why all the examples are not differential equations. I know all about the matlab functions but can never figure out how to input the information. Is there a place where people have very clear SIMPLE examples that will help with signals and systems first course?

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 23 Oct 2012
Edited: Azzi Abdelmalek on 23 Oct 2012
N=[1 2];
D=[1 7 12]
model=tf(N,D)
[y,t]=step(model)
plot(t,y)
% or
t = 0:0.1:10; % vector time
u = ones(1,length(t)); u(1:10)=0
% u is your step signal or a signal of your choice
y=lsim(model,u,t)
plot(t,y)
  2 Comments
ha9981
ha9981 on 23 Oct 2012
For a person who has never used these function before it is unclear what N and D are. If you can show me the original equation that you found step for then I can learn from it and apply the same technique to my system. Thanks.
Azzi Abdelmalek
Azzi Abdelmalek on 24 Oct 2012
1 dy^2(t)/dt + 7 dy(t)/dt+12y(t) = dx(t)/dt + 2x(t)
(1 p^2 + 7 p +12) Y(p)=(1 p +2) X(p)
N: contains left polynome coefficients
D: contains right polynome coefficients

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!