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

조회 수: 1 (최근 30일)
kim lee
kim lee 2018년 8월 9일
답변: Thorsten 2018년 8월 9일
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

답변 (1개)

Thorsten
Thorsten 2018년 8월 9일
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.

Community Treasure Hunt

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

Start Hunting!

Translated by