how can i get Edit textbox value in loop?
1 次查看(过去 30 天)
显示 更早的评论
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
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.
回答(1 个)
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!