how can i find the lsim info for this transfer function
15 views (last 30 days)
Show older comments
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
on 29 May 2013
what do you mean by
i need relevant data for both the Heaviside (step) that applied into the transfer function
Accepted Answer
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.
0 Comments
More Answers (0)
See Also
Categories
Find more on Pole and Zero Locations in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!