필터 지우기
필터 지우기

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