필터 지우기
필터 지우기

How to make my gui editbox update my iterate calculations

조회 수: 2 (최근 30일)
Mikkel
Mikkel 2013년 2월 9일
댓글: Vinayak Appasaheb Bhatte 2018년 8월 6일
Hi
Its a bit hard to explain, so I have uploaded a picture, and a video to youtube explaining what my problem.
I've uploaded my problem to youtube: http://youtu.be/19Aya05R6R8
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
Mikkel
Mikkel 2013년 2월 9일
Cant you choose HD and then select full screen? then on my computer I can see the picture fine.
Jan
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
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
Mikkel
Mikkel 2013년 2월 11일
Walter, I've tried to put a break into my result_Callback but doesn't work, it only gets the H value when I stop the entire calculation. I don't know if you have been into the dropbox and seen for your self, but I'm a bit confused how to make this work, because my idea to make a small 0.00000 pause wasnt the right way, it froze my program when I tried to develop it.
Vinayak Appasaheb Bhatte
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
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')
  댓글 수: 2
Mikkel
Mikkel 2013년 2월 10일
I've tried doing that, but it doesn't update my editbox with numbers in my gui, do I need to type something under the callback?
Image Analyst
Image Analyst 2013년 2월 10일
What old m-file?

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

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by