I want to use a progress-bar during Matlab calulation

Posted on 2006-04-24
Last Modified: 2016-02-10
I have a calculation that will be done lets say 1,000,000 times, and I would like to increment a progress bar to indicate to the user that the computer is still working.

I saw a freind of mine doing something like this, but I couldn't find any sign of a progress bar in the Matlab help.

please help...


Question by:zulti
    LVL 2

    Accepted Solution

    Try the following code :

       h = waitbar(0,'Please wait...');
       for i=1:100,
          % computation here %

    Type "help waitbar" to see more information.

    LVL 2

    Author Comment

    Thanks Gordon, that what I was looking for...


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    This article seeks to propel the full implementation of geothermal power plants in Mexico as a renewable energy source.
    We are taking giant steps in technological advances in the field of wireless telephony. At just 10 years since the advent of smartphones, it is crucial to examine the benefits and disadvantages that have been report to us.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now