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

2 ビュー (過去 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