In this section we sea how to handle wait-bar and Message-box on Matlab.In wait-bar just mind following things
- Initialization of wait-bar.Initially wait-bar wait value as zero.
- Then do the increment values use for loop or while loops ,that is depends on your operation.
- Increment value finally equal to 1,That is wait-bar fully Red.
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
- Normal
- Error
- Help
- Warning
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
No comments:
Post a Comment