I'm having trouble using MsgBox.
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 20 de Abr. de 2017
What is class(myicon) ?
Also, please put in a breakpoint at the "if" and query class(kontrl)
Muhendisleksi
el 20 de Abr. de 2017
Respuestas (1)
Greg
el 20 de Abr. de 2017
elseif errordlg({'Dengeli Ölçülerin Denetimi' ' HATALI!!!'},'Hata');
I believe you wanted:
else
errordlg({...},'Hata');
2 comentarios
Greg
el 20 de Abr. de 2017
Which also means you aren't having any trouble using MsgBox as your question title states. You're having trouble using elseif.
Muhendisleksi
el 20 de Abr. de 2017
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!