Can I display a text from a textbox into the command window?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I have a gui with a textbox that is showing the frames of a movie while is playing. When i press pause, everything pauses. Is there any way to copy or print the 'Current frame' showed in the text box while the movie is in pause??
댓글 수: 0
답변 (1개)
Jason Whitfield
2018년 7월 19일
If you have a handle to the textbox, you can access its text through its "String" property. You can get a handle to it with the "findobj" or "findall" functions. For example, if there is only one textbox in the image, you could do the following.
textbox = findall(gcf, 'Type', 'textboxshape');
disp(textbox.String);
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!