Why does MATLAB not wait for me to click OK in a modal MSGBOX before moving on to the next command in the MATLAB file?
Show older comments
I have the following sequence of commands in a MATLAB function:
disp(1:10);
msgbox('Draw a MESH plot?', 'modal');
contourf(peaks);
The MSGBOX comes up fine, but MATLAB also goes ahead and draws the CONTOURF plot without waiting for the me to click OK.
Accepted Answer
More Answers (0)
Categories
Find more on Update figure-Based Apps in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!