Why can I not get the modaldlg function to work? eg. user_response = modaldlg('Title','Confirm Close');
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Steven
am 4 Dez. 2014
Beantwortet: C.J. Harris
am 4 Dez. 2014
I am learnig Matlab and trying to use the modaldlg function call for a GUI and I receive the following error:
Undefined function 'modaldlg' for input arguments of type 'char'.
I have used the exact same code found in the 'Creating Graphical User Interfaces' pdf with no avail.
Nor does help even recognize this function call.
I am using Matlab2014b
0 Kommentare
Akzeptierte Antwort
C.J. Harris
am 4 Dez. 2014
Try one of the following, depending on the type of dialog you want:
user_response = errordlg('Error','Confirm Close', 'modal');
user_response = warndlg('Warning','Confirm Close', 'modal');
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!