How to display rise time in edit box MATLAB Gui?
조회 수: 1 (최근 30일)
이전 댓글 표시
How can i display the rise time and settling time that is obtained from the graph into the edit box GUI?
댓글 수: 2
Rik
2021년 8월 3일
Just as with anything else you do in your GUI: write a function that calculates what you need, then use the handles to the objects to set the String property.
채택된 답변
Rik
2021년 8월 3일
The function you're using doesn't return a single numeric value, but a struct, as the documentation clearly explains. You need to convert the results to a char array.
%Rise Time
h = Stepinfo(syspi);
str=num2str(h.RiseTime);
set(handles.setime,'String', str);
By using that intermediary step you can more clearly see what is happening.
%alternatively:
str=sprintf('Rise time: %.1f, Settling time: %.1f',h.RiseTime,h.SettlingTime)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Whos에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!