how to save the data from stepinfo

2 visualizaciones (últimos 30 días)
chee
chee el 14 de Jul. de 2012
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

Respuestas (1)

Star Strider
Star Strider el 15 de Jul. de 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.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by