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

3 visualizaciones (últimos 30 días)
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

Respuestas (1)

Thorsten
Thorsten el 9 de Ag. de 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.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by