How to access a Fixed Point convert Look up table

3 次查看(过去 30 天)
Hello
I wish to create a look up table that will replace the hankel function. I tried to do this according to
The problem is that there is no inforamation/commands available in order to access the look up table. Can
anybody help please
Thanks

回答(1 个)

Sumukh
Sumukh 2024-7-25
Hi Minas.
I understand that you are trying to access the lookup table generated from HDL coder for the “hankel” function.
After following the steps provided in the documentation, a wrapper function is generated for the fixed-point MATLAB function call_custom_fcn_fixpt. This function includes the lookup table for the “hankel” function. It also contains additional code to generate output for any input value within the specified input range. The function uses the types and interpolation method specified in HDL Coder. This configuration is specified while generating the function.
The values of lookup table cannot be accessed by commands since it is hard coded inside a “fi” object named "LUT", in the replacement functioncall_custom_fcn_fixpt itself when generating it.
However, a workaround for this is to open the replacement functioncall_custom_fcn_fixpt itself and directly copy the lookup table values declared inside thefi” object LUT”.
I hope this resolves the issue.

产品

Community Treasure Hunt

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

Start Hunting!

Translated by