how to save the data from stepinfo
Ältere Kommentare anzeigen
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
Antworten (1)
Star Strider
am 15 Jul. 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.
Kategorien
Mehr zu Time-Domain Analysis finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!