how can i find the lsim info for this transfer function

1 view (last 30 days)
i'm trying to find lsim info for this transfer function, i know the code
s=lsiminfo
this code is like
stepinfo(sys)
which is great, but i need to use lsim.
this is my Matlab program:
G=tf([],[]); % ANY KIND OF TRANSFER FUNCTION
t=0:0.001:1;
u=100*heaviside(t); % Step in 100 level
lsim(G,u,t) % Liniar Simulation
LsimInfo=lsiminfo(G)
i need relevant data for both the Heaviside (step) that applied into the transfer function but i don't know how to get this info.
  1 Comment
Azzi Abdelmalek
Azzi Abdelmalek on 29 May 2013
what do you mean by
i need relevant data for both the Heaviside (step) that applied into the transfer function

Sign in to comment.

Accepted Answer

Wayne King
Wayne King on 29 May 2013
Edited: Wayne King on 29 May 2013
G = tf(1,[1 2 5]); % whatever your transfer function is
t=0:0.001:1;
u=100*heaviside(t); % Step in 100 level
resp = lsim(G,u,t);
S = lsiminfo(resp,t);
The above user resp(end) as the steady-state value.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!