Re: Updating Edit text in MATLAB GUI
- From: kartik <kartik14@xxxxxxxxx>
- Date: Sun, 22 Jun 2008 20:15:03 -0700 (PDT)
On Jun 20, 4:54 pm, "French Caro " <caro95...@xxxxxxxxxxxxxx> wrote:
kartik <karti...@xxxxxxxxx> wrote in message
I have a question regarding updating the values in theedit text
components of a MATLAB GUI.
I have a 'for' loop which does computation on an array ofimages. I
want the image's index which is being processed in theedit text box.
So, in each iteration of the loop I do the computation andupdate the
edit text box using:
set ( handles.edit2, 'String' , [ 'Processing imagenumber: ',
num2str (i) ] ) ;
The problem is, the text is not getting updated after eachloop, but
instead it gets updated at the end after all theiterations are
do I need to add anything else to force it to updateitself after each
Thanks in advance....
I think that adding the drawnow function or a pause can do
the job :
Caroline- Hide quoted text -
- Show quoted text -
It worked ...!!!
Thanks a lot
- Prev by Date: Re: FPRINTF
- Next by Date: Need help about genetic algorithm
- Previous by thread: Re: Updating Edit text in MATLAB GUI
- Next by thread: Bitdepth