Error: Too many output arguments

2 Ansichten (letzte 30 Tage)
faheem ifti
faheem ifti am 14 Mai 2019
Beantwortet: Walter Roberson am 14 Mai 2019
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 Kommentar
Stephen23
Stephen23 am 14 Mai 2019
@faheem ifti: please show us the complete error message. This means all of the red text.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 14 Mai 2019
disp is the name of a function that cannot have output. You should avoid using it as the name of a variable.

Weitere Antworten (0)

Kategorien

Mehr zu Software Development Tools finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by