how to use waitbar

3 views (last 30 days)
Pat
Pat on 30 Dec 2011
please tell how to add wait in the code to see the program executing
OriginalData=xlsread('dataset.xls','A1:F500');
[r c]=size(OriginalData)
k=zeros(r,1);
OriginalData=[OriginalData k];
[ DiscretData,DiscretizationSet1 ] = CACC_Discretization( OriginalData,1);
DiscretizationSet1

Accepted Answer

Chandra Kurniawan
Chandra Kurniawan on 30 Dec 2011
At line 40, add -> h = waitbar(0,'Please wait...');
At line 98, add -> waitbar(p / F); and original line 98 becomes line 99
At line 100, add -> close(h); ad original line 99 becomes line 101
  1 Comment
Pat
Pat on 30 Dec 2011
thanks a lot chandra

Sign in to comment.

More Answers (0)

Categories

Find more on App Building in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!