Why do I get an error message when I questdlg function

3 ビュー (過去 30 日間)
Sara
Sara 2021 年 6 月 15 日
コメント済み: Sara 2021 年 6 月 15 日
Hi,
I got an error message in my code that occurs this morning.
I use questdlg in my code which was fine yesterday, but this morning I got an error message, as shown in the image below.
Does anyone know how to overcome this issue? Because yesterday was working fine but this morning is not working !!!
Thank you
  4 件のコメント
KSSV
KSSV 2021 年 6 月 15 日
Copy and paste code here.....attaching as image will not help us.
Sara
Sara 2021 年 6 月 15 日
Okey
The erro in my code in this part
answer1 = questdlg('Strained Method?', ...
'Options',...
'Expanded strain at the facet','Compressed strain at the facet','');
This was fine yesterday, but today is changing, I do not know, is it MATLAB change the function or something
questdlg function debug is there
if ~DefaultValid
warnstate = warning('backtrace','off');
warning(message('MATLAB:questdlg:StringMismatch'));
warning(warnstate);
end

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

採用された回答

Chunru
Chunru 2021 年 6 月 15 日
Add the default button (last argument) to be one of the specified buttons:
answer1 = questdlg('Strained Method?', ...
'Options',...
'Expanded strain at the facet','Compressed strain at the facet','Expanded strain at the facet');
  1 件のコメント
Sara
Sara 2021 年 6 月 15 日
Thank you for yoyr answer.
The issue was resolved
:)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by