フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I'm having trouble using MsgBox.

1 回表示 (過去 30 日間)
Muhendisleksi
Muhendisleksi 2017 年 4 月 20 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
kontrl = -4.796163466380676e-14
if -0.001<=kontrl & kontrl>=0.001
h=msgbox({'Dengeli Ölçülerin Denetimi' 'BAŞARILI!!!'},...
'Kontrol','custom',myicon);
elseif errordlg({'Dengeli Ölçülerin Denetimi' ' HATALI!!!'},'Hata');
end
"Conversion to logical from matlab.ui.Figure is not possible." I get this error.
  2 件のコメント
Walter Roberson
Walter Roberson 2017 年 4 月 20 日
What is class(myicon) ?
Also, please put in a breakpoint at the "if" and query class(kontrl)
Muhendisleksi
Muhendisleksi 2017 年 4 月 20 日
"Myicon" is the photo.

回答 (1 件)

Greg
Greg 2017 年 4 月 20 日
elseif errordlg({'Dengeli Ölçülerin Denetimi' ' HATALI!!!'},'Hata');
I believe you wanted:
else
errordlg({...},'Hata');
  2 件のコメント
Greg
Greg 2017 年 4 月 20 日
Which also means you aren't having any trouble using MsgBox as your question title states. You're having trouble using elseif.
Muhendisleksi
Muhendisleksi 2017 年 4 月 20 日
I still have the same problem.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by