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
<6a114b19-22e5-49b2-81d6-fa02a0978...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
Hi,
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
finished.
do I need to add anything else to force it to updateitself 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
.
- References:
- Updating Edit text in MATLAB GUI
- From: kartik
- Re: Updating Edit text in MATLAB GUI
- From: French Caro
- Updating Edit text in MATLAB GUI
- 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
- Index(es):
Relevant Pages
|