フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to resolve 'not enough input arguments' error.

1 回表示 (過去 30 日間)
Roshani Narkhede
Roshani Narkhede 2020 年 10 月 26 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I want to convert this code into verilog using HDL Coder.
error is in line 2. ex = exp(x);
code is saved as SOFTMAX_BLOCK.m
function softmax_out = softmax_block(x)
ex = exp(x);
softmax_out = ex / sum(ex);
end
code is saved as test_softmax.m
x = SOFTMAX_BLOCK(8)
x = SOFTMAX_BLOCK(5)
x = SOFTMAX_BLOCK(0)

回答 (1 件)

Nikhil Sonavane
Nikhil Sonavane 2020 年 10 月 29 日
You need to call test_softmax.m which contains the value of x from SOFTMAX_BLOCK.m. Currently value of x is not accessible to SOFTMAX_BLOCK.m. You may refer to these already answered MATLAB Answer which may help you resolve this issue-
You may refer to this following documentation for any help regarding HDL Code Generation from MATLAB Code-

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by