how to save the data from stepinfo
5 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Star Strider
on 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.
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!