Image Processing in GUI Error

조회 수: 1 (최근 30일)
Muhammad Awais saleem
Muhammad Awais saleem 2020년 6월 26일
댓글: Muhammad Awais saleem 2020년 6월 26일
i am working on Zooming of Image in MATLAB GUI
i have sucessfully loaded image in MATLAB GUI but when i try to zoom it it gives error mentioned below
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)test('pushbutton2_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback

채택된 답변

Geoff Hayes
Geoff Hayes 2020년 6월 26일
Muhammad - please post the full error message (so all of the red text) so we can narrow down which line of the callback is generating the error.
Is it that the A is not defined? (Instead of using global variables, save the image (once loaded) to the handles structure which this callback then use to access the image.)
More likely, the error has to do with f1 variable which is being used as the step size in the two for loops....but it hasn't yet been defined. Please define this variable (again consider using the handles structure if this is set elsewhere in the code).
  댓글 수: 1
Muhammad Awais saleem
Muhammad Awais saleem 2020년 6월 26일
thanks for answering sir
yeah first error was undefined f1 function
and second i went through as you said it now solved thanks a lot

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by