MATLAB Answers

Incorrect number of output arguments for 'pre_test_fixpt'. Expected 1, but found 2.

4 views (last 30 days)
kim lee
kim lee on 9 Aug 2018
Answered: Thorsten on 9 Aug 2018
Hi!,
I've got error message when I generate the hdl code in MATLAB the below code,
Incorrect number of output arguments for 'pre_test_fixpt'. Expected 1, but found 2.
But I can't get it, What does "Incorrect number of output arguments for 'pre_test_fixpt'. Expected 1, but found 2." mean? How can I resolve this problem?
this is test code
srcX = 4;
srcY = 4;
dstX = 32;
dstY = 32;
rep_dstXminus_one = 1/(dstX-1);
rep_dstYminus_one = 1/(dstY-1);
a00 = pre_test(srcX,srcY,dstX,dstY,rep_dstXminus_one,rep_dstYminus_one);
This is function code
function a00 = pre_test(srcX,srcY,dstX,dstY,rep_dstXminus_one,rep_dstYminus_one)
for y = 1:255
for x = 1:255
a00 = y*x + srcX + srcY + dstX +dstY + rep_dstXminus_one +rep_dstYminus_one;
end
end
end

  0 Comments

Sign in to comment.

Answers (1)

Thorsten
Thorsten on 9 Aug 2018
You show code for pre_test, but the error is about pre_test_fixpt. Have a look at how you call this function in your code.

  0 Comments

Sign in to comment.


Translated by