questdlg() functions does not dsiplay default buttons or user defined buttons

5 ビュー (過去 30 日間)
Deependra Mishra
Deependra Mishra 2019 年 7 月 9 日
コメント済み: Deependra Mishra 2019 年 7 月 9 日
7-9-2019 11-24-47 AM.png
which questdlg
>> C:\Program Files\MATLAB\R2018b\toolbox\matlab\uitools\questdlg.p
I tried using the questdlg.m files by temporarily removing .p files and it still didn't work. Looks like for some reason questdlg.p files keeps getting corrupted. I am not able to create new .p files using pcode function.
When I copy the questdlg.p file from the same version matlab from another system it works for sometime and again start getting the dialog box without any buttons.
  2 件のコメント
Guillaume
Guillaume 2019 年 7 月 9 日
You should never mess with any file in C:\Program Files (be it matlab or otherwise), it's a sure way to irreversibly corrupt programs. At this point, I would recommend reinstalling matlab rather than copying files from another system.
You should show us the code you used to generate the dialog.
Deependra Mishra
Deependra Mishra 2019 年 7 月 9 日
questdlg('Would you like a dessert?', ...
'Dessert Menu', ...
'Ice cream','Cake','No thank you','No thank you');
I used the code from the documentation example. I tried messing with files in C:\Program Files only after I was having issue with multiple system. I have tried this both on mac and windows pc. I am not getting the default buttons. I messed the files in windows PC which has Matlab R2018b. When I said I copied the file from other system. I copied the questdlg.p file from another windows machine which has MAtlab R2018b.
In mac, i have MATLAB R2019a installed, haven't messed with any files and still when executing above code I have the same issue. The output of
which questdlg
in mac is as follows:
/Applications/MATLAB_R2019a.app/toolbox/matlab/uitools/questdlg.p

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeDialog Boxes についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by