how to have a feedback to users when Matlab is computing in GUIDE

Hello, I am new to Matlab. There is no specific code I am talking about here. I load a big amount of data into Matlab and use GUIDE as user interface. Because the data is too heavy, it takes a long time to load in. Is there a way to show Matlab is computing on GUIDE?? (so users will know Matlab is computing now)

 Accepted Answer

It depends on how you're reading it in. If it's in a loop, then yes - you can put up some message on screen (be sure to use the drawnow command). If it's just one command, like an xlsread() that is taking a very very long time, then it would be more complicated.

3 Comments

It's a xlsread() How can I show the image when computing starts and let the image disappear when computing done
How long does it take to read in the xls file?
To show an image, you can use imshow().
imshow(yourImage, []);
To make it disappear, you can show just a gray pixel or something
imshow([.5,.5]); % Get rid of image and show just a dot.
Thanks for your answer. BTW, I found out waitbar is also useful.

Sign in to comment.

More Answers (0)

Categories

Find more on App Building in Help Center and File Exchange

Asked:

on 12 Feb 2017

Commented:

on 13 Feb 2017

Community Treasure Hunt

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

Start Hunting!