Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

I'm having trouble using MsgBox.

1 vue (au cours des 30 derniers jours)
Muhendisleksi
Muhendisleksi le 20 Avr 2017
Clôturé : MATLAB Answer Bot le 20 Août 2021
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 commentaires
Walter Roberson
Walter Roberson le 20 Avr 2017
What is class(myicon) ?
Also, please put in a breakpoint at the "if" and query class(kontrl)
Muhendisleksi
Muhendisleksi le 20 Avr 2017
"Myicon" is the photo.

Réponses (1)

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

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by