how to save the data from stepinfo
Afficher commentaires plus anciens
S = stepinfo(sysback)
S =
RiseTime: 1.1517
SettlingTime: 1.8694
SettlingMin: 0.0819
SettlingMax: 0.0916
Overshoot: 0.7474
Undershoot: 0
Peak: 0.0916
PeakTime: 2.5921
Hey, may i know how to return the data from a system such as grab the Rise Time from stepinfo result because i need it for further calculation,Thanks
Réponses (1)
Star Strider
le 15 Juil 2012
‘S’ is a structure, so if you want to use the value of RiseTime in a later calculation, assign it to a variable:
SysRiseTime = S.RiseTime;
and the same for the others. You can of course refer to it in calculations as S.RiseTime but it's easier (for me in my code) to assign structure components to separate variables.
For more details on MATLAB structures and how to work with them, see:
If you want to save it to a file, see ‘Data Import and Export’ ( http://www.mathworks.com/help/techdoc/import_export/ug_intropage.html ) in the MATLAB User's Guide.
Catégories
En savoir plus sur Time-Domain Analysis dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!