how to save the data from stepinfo
이전 댓글 표시
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
답변 (1개)
Star Strider
2012년 7월 15일
‘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.
카테고리
도움말 센터 및 File Exchange에서 Time-Domain Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!