MATLAB Guide GUI Help - Strange Error in axes() callback - Not enough input arguments

조회 수: 1 (최근 30일)
Connor Beck
Connor Beck 2017년 6월 23일
댓글: Connor Beck 2017년 6월 23일
So I have a long GUI code I am developing and I ran into a really strong error when I was trying to display an image in a specific axes. I have 8 different axes displaying images and when I was calling them back in the function I ran into the error
"Not enough input arguments".
the error occurs in this line, and I have checked the tag on the axes and it definitely matches.
axes(handles.Overall_Image_axes);
I would post the whole code but it is too long, I just need to know if this is actually an error with the axes or if I messed up somewhere else along the way.
Thanks, Connor

답변 (1개)

Jan
Jan 2017년 6월 23일
What is the contents of handles.Overall_Image_axes? Check this with the debugger. Type this in the command window:
dbstop if error
Now run the code again until it stops. Then you can check the value, e.g. in teh command window. Is it empty? Is it a function handle of a function, which expects an input?
The problem might become clear, if you post the complete error message. The details matter.
Check also during the debugging, if e.g. "axes" has been redefined:
which axes -all
  댓글 수: 1
Connor Beck
Connor Beck 2017년 6월 23일
Thanks for the debugging tip, I was able to recreate the axes in the gui and the problem seemed to disappear.

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

카테고리

Help CenterFile Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by