フィルターのクリア

how can i get Edit textbox value in loop?

3 ビュー (過去 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 Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by