필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
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 CenterFile Exchange에서 Dialog Boxes에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by