Error: Too many output arguments

조회 수: 2 (최근 30일)
faheem ifti
faheem ifti 2019년 5월 14일
답변: Walter Roberson 2019년 5월 14일
Hi
I have a defined function:
function [ HrLPoints ] = harrislpls( img, TypeOfNBHOOD, NBHOOD, TypeOfCornerDetector, BorderDistance, ThreshType, HarrisThresh, k, Dilate, radius, sigma_nmbr, disp, SwitchWaitbars )
When i call this function from main file, i get an error message "Too many output arguments". All parameters/ variables are seemingly correctly passed to the function.
my Call to function is:
[ HrLPointsTmp1 ] = harrislpls( imgSimulated, TypeOfNBHOOD, NBHOOD, TypeOfCornerDetector, BorderDistanceMatrix, ThreshType, HarrisThresh, k, Dilate, radius, sigma_nmbr, disp, SwitchWaitbars );
  댓글 수: 1
Stephen23
Stephen23 2019년 5월 14일
@faheem ifti: please show us the complete error message. This means all of the red text.

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

채택된 답변

Walter Roberson
Walter Roberson 2019년 5월 14일
disp is the name of a function that cannot have output. You should avoid using it as the name of a variable.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Software Development Tools에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by