How to make my gui editbox update my iterate calculations
1 回表示 (過去 30 日間)
古いコメントを表示
Hi
Its a bit hard to explain, so I have uploaded a picture, and a video to youtube explaining what my problem.
My problem is that I need to make me iterate calculations show up in a editbox, during the calculation. But I've searched everywhere and haven't been able to find any help anywhere. So I need a gui matlab expert to help me.
I haven't found out what to do, the option of putting in a small break and then letting the small result appear in the editbox before starting again, ain't a good solution, because when I develop it, den it breaks down.
3 件のコメント
Jan
2013 年 2 月 11 日
I cannot get a clean view to this movie. I'm convinced, that youtube movies are not an efficient medium to explain Matlab problems.
回答 (2 件)
Image Analyst
2013 年 2 月 10 日
You need to create a string with your numbers in it then send it to the correct control. Are you sure you're sending it to the edit box you want to, and not a tag or something?
strH = sprintf('H=%f', H);
set(handles.editH, 'String', strH);
Tell me what is the "Tag" property for your edit field that you want to put H into.
If that doesn't work, try adding
drawnow;
after it to force the screen to update immediately. It's possible you're just in such an intensive loop that it doesn't get around to updating the screen until your loop is done.
9 件のコメント
Vinayak Appasaheb Bhatte
2018 年 8 月 6 日
Similarly how can I generate two variables in the same edit box say ' i out of n ' where i and n are variables inside a for loop.
Please help me. Thanks
Azzi Abdelmalek
2013 年 2 月 10 日
編集済み: Azzi Abdelmalek
2013 年 2 月 10 日
In your loop you must add for each edibox something like
set(handles.edit1,'string','Vd')
参考
カテゴリ
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!