how can i find the lsim info for this transfer function

2 次查看(过去 30 天)
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.

采纳的回答

Wayne King
Wayne King 2013-5-29
编辑:Wayne King 2013-5-29
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 个)

类别

Help CenterFile Exchange 中查找有关 Robust Control Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by