why is my code having an error

조회 수: 11 (최근 30일)
tala
tala 2023년 1월 17일
답변: Walter Roberson 2023년 1월 23일
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)dipfinalproject('importimage_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
  댓글 수: 1
Rajeev
Rajeev 2023년 1월 23일
Can you provide the exact snapshot of the error along with the script that is causing it?

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2023년 1월 23일
the most common problem in image importing callbacks, is failing to use fully qualified file names. uigetfile returns two outputs, filename and directory. The directory returned is not certain to end with a directory separator character but often does. use fullfile to put the two parts together.

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by