Re: Updating Edit text in MATLAB GUI



On Jun 20, 4:54 pm, "French Caro " <caro95...@xxxxxxxxxxxxxx> wrote:
kartik <karti...@xxxxxxxxx> wrote in message

<6a114b19-22e5-49b2-81d6-fa02a0978...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...



Hi,

I have a question regarding updating the values in the
edit text
components of a MATLAB GUI.

I have a 'for' loop which does computation on an array of
images. I
want the image's index which is being processed in the
edit text box.
So, in each iteration of the loop I do the computation and
update the
edit text box using:

 set ( handles.edit2, 'String' , [ 'Processing image
number:  ',
num2str (i) ] ) ;

The problem is, the text is not getting updated after each
loop, but
instead it gets updated at the end after all the
iterations are
finished.

do I need to add anything else to force it to update
itself after each
iteration?

Thanks in advance....

Hi
I think that adding the drawnow function or a pause can do
the job :
set(...)
drawnow
%or pause(0.2)

Caroline- Hide quoted text -

- Show quoted text -

Hi,

It worked ...!!!

Thanks a lot
Kartik
.



Relevant Pages

  • Re: XP Programs Side Menus
    ... Reboot. ... Or run the edit on line 68 ... is the "pause" is way to long. ... > there a way to speed up the pause time? ...
    (microsoft.public.windowsxp.general)
  • SUS Server Logging Problem
    ... The alternative is to edit the .inc files in question ... of iterations, if at the end of each iteration you add ... The reason it's overflowing is because the ... approve updates button, ...
    (microsoft.public.cert.exam.mcsa)
  • Re: I sure am enjoying this lack of political correctness and feminism here! Let me tell you how eas
    ... Why'd you even bother to bring your laptop? ... That's a very good question that give one pause. ...
    (soc.men)
  • Re: Unprotect Word Document
    ... > I have a document on my laptop that I have been working on through several ... > iterations and have copied the file to a CD for printing at Kinkos. ... > party software that will allow me to edit my document again. ...
    (microsoft.public.office.misc)
  • Re: Changing file names with a single click
    ... Dave Balderstone writes: ... > Click once to highlight the file name. ... Pause 1 second. ... > Edit name. ...
    (comp.sys.mac.system)