Friday 13 April 2012

Matlab Waitbar Example code | Matlab Messagebox example code

In this section we sea how to handle wait-bar and Message-box on Matlab.In wait-bar just mind following things

  1. Initialization of wait-bar.Initially wait-bar wait value as zero.
  2. Then do the increment values use for loop or while loops ,that is depends on your operation.
  3. Increment value finally equal to 1,That is wait-bar fully Red.
In below example code to describe the wait bar.
h = waitbar(0,'Waiting Status msg.........');
for i = 1:500
waitbar(i/500);
end
close(h);
Matlab Message-box
In matlab following type of message boxes are there
  1. Normal
  2. Error
  3. Help
  4. Warning
These type of message box example as follows
h = msgbox('Input Message','Title of msg box','none') ;
h = msgbox('
Input Message','Title of msg box','error') ;
h = msgbox('
Input Message','Title of msg box','help') ;
h = msgbox('
Input Message','Title of msg box','warn') ;
Then wait-bar and message-box output as follows

Related Search : Matlab Waitbar Example code , Matlab Message box example code, Matlab Wait-bar Example code ,

Kindly Bookmark and Share it:

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...