warndlg() and msgbox() not passing string

Hello,
All of a sudden, warndlg() and msgbox() don't pass the string.
If I type
warndlg('My Warning','Title')
the dialog box has the correct title, but no warning icon and no message! Same with msgbox()
Any ideas?
Thanks.
Doug Anderson

7 件のコメント

Stephen23
Stephen23 2021 年 12 月 8 日
Please show the complete output of these two commands:
which warndlg -all
which msgbox -all
Douglas Anderson
Douglas Anderson 2021 年 12 月 8 日
For warndlg
C:\Program Files\MATLAB\R2021a\toolbox\matlab\uitools\warndlg.m
For msgbox
C:\Program Files\MATLAB\R2021a\toolbox\matlab\uitools\msgbox.m
Rik
Rik 2021 年 12 月 8 日
These functions do OS API calls, so might something have broken there?
Douglas Anderson
Douglas Anderson 2021 年 12 月 8 日
I have no idea what OS API calls are! How do I test?
Douglas Anderson
Douglas Anderson 2021 年 12 月 8 日
I just exited MATLAB and started up again, and it's working again, so I guess that the OS API (?) was indeed broken!
Thanks.
Rik
Rik 2021 年 12 月 9 日
The operating system (OS, so Windows, MacOS, Ubuntu, Arch, etc) provides an application program interface (API) to do things like determining what files are in a folder etc. One of the things the OS can do is make a window. That is why the documentation warns that the windows may look differently between operating systems.
Douglas Anderson
Douglas Anderson 2021 年 12 月 9 日
Thanks Rik. Your comment was a good clue to just restart MATLAB.

サインインしてコメントする。

 採用された回答

Douglas Anderson
Douglas Anderson 2021 年 12 月 8 日

0 投票

When all else fails, Reboot! :)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeEnvironment and Settings についてさらに検索

製品

リリース

R2021a

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by