Matlab : Create Progressbar

When we process a looping function in Matlab, we can create progressbar in this function. Matlab have waitbar function. We can use this function if we want to add progressbar in my function. This is sample of picture progressbar in Matlab with function waitbar:

This is example how to create progressbar in Matlab. Copy this code in your m-file editor and running this code.

This progressbar will updated every 100 data. This progressbar will caused program slower than without progressbar. If we want create progressbar without cause running function slower than without progressbar, we can add spesific value in number of update progressbar.  Example. When running a function, progressbar will updated every 10% of total data. We can modified above code with this :

2 thoughts on “Matlab : Create Progressbar

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.