필터 지우기
필터 지우기

how can i get Edit textbox value in loop?

조회 수: 1 (최근 30일)
romasha
romasha 2014년 1월 22일
댓글: Image Analyst 2014년 1월 23일
when on runtime, i give value in edit textbox so i want that value used in loop. Like: if i give 5 in textbox so 5 images are shown how can i do this ?
  댓글 수: 2
Bruno Pop-Stefanov
Bruno Pop-Stefanov 2014년 1월 22일
Update your figure in the callback for the edit text box. You can access the figure onto which you want to show images in the handles structure, provided that you added the figure to your GUI in GUIDE.
romasha
romasha 2014년 1월 23일
didn't get this kindly illustrate me with a code snippet

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2014년 1월 22일
When you get() the String property of the edit textbox, use str2double() to convert it to numeric form and use that number in your loop.
  댓글 수: 1
Image Analyst
Image Analyst 2014년 1월 23일
theValue = str2double(get(handles.editBox, 'String'));

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by