Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
waitbar

Subject: waitbar

From: indu singh

Date: 28 Mar, 2013 16:04:06

Message: 1 of 2

hi,
i am working on a project "image compression and decompression" under matlab.
i have a one line code for which i need to use waitbar to show the progress of that code.

code is: DeIM=Decode_Color_Image_DWT_DCT(b);

kindly tell me how to connect waitbar function with this line of code.
plzzzz reply as soon as possible..
thank you.

Subject: waitbar

From: someone

Date: 28 Mar, 2013 17:08:06

Message: 2 of 2

"indu singh" wrote in message <kj1plm$1co$1@newscl01ah.mathworks.com>...
> hi,
> i am working on a project "image compression and decompression" under matlab.
> i have a one line code for which i need to use waitbar to show the progress of that code.
>
> code is: DeIM=Decode_Color_Image_DWT_DCT(b);
>
> kindly tell me how to connect waitbar function with this line of code.

What can you possibly expect us to tell you with the little information you have provided? At the command line, type:

doc waitbar

The help example shows you how to include the waitbar function in you code.
Based on that example and your code, I would suggest something like:

h = waitbar(0,'Please wait...');
for b=1:100
   DeIM=Decode_Color_Image_DWT_DCT(b);
   waitbar(b/100)
end
close(h)

That may or may not make sense. It depends on what DeIM=Decode_Color_Image_DWT_DCT(b);
actually means.

> plzzzz reply as soon as possible..
> thank you.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us