12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

waitbarPurpose2waitbarDisplay waitbarSyntaxDescriptionh = waitbar(x,'title')A waitbar shows what percentage of a calculation is complete, as thecalculation proceeds.h = waitbar(x,'title') creates and displays a waitbar of fractional length x.The handle to the waitbar figure is returned in h. x should be between 0 and 1.Each subsequent call to waitbar, waitbar(x), extends the length of the bar tothe new position x.Examplewaitbar is typically used inside a for loop that performs a lengthycomputation. For example,h = waitbar(0,'Please wait...');for i=1:100, % computation here %waitbar(i/100)endclose(h)2-582

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!