how to get the parameters of step response?
Mostra commenti meno recenti
hi everybody.. how can get 'num' and 'den' when i have the step response? i'm using matlab 2010. please help me.thank you.
Risposte (2)
Ryan G
il 27 Nov 2012
0 voti
You can use the system identification GUI to analyze data and estimate a transfer function from that data. In this case you are using step response data so the input would be the step and the output would be the response.
Rajiv Singh
il 27 Nov 2012
To elaborate on what Ryan wrote, suppose y is the vector of step response data and Ts is the sampling time.
N = length(y);
u = [zeros(10,1); ones(N,1)];
y2 = [zeros(10,1); y];
stepdata = iddata(y,u,Ts);
model = tfest(stepdata, numpoles, numzeros); % available >=R2012a
where numpoles and numzeros are the desired number of poles and zeros for the transfer function.
[num,den] = tfdata(model); % or, simply do model.num and model.den
The zero-padding of the data was done to ensure that the step transition (0 to 1) is evident in the data.
Rajiv
2 Commenti
UPT
il 27 Nov 2012
Rajiv Singh
il 27 Nov 2012
[num,den] = tfdata(model), or, simply do model.num and model.den where model is the transfer function
Categorie
Scopri di più su Linear Model Identification in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!