How to access a Fixed Point convert Look up table
3 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Sumukh
on 25 Jul 2024
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 function “call_custom_fcn_fixpt” itself when generating it.
However, a workaround for this is to open the replacement function “call_custom_fcn_fixpt” itself and directly copy the lookup table values declared inside the “fi” object “LUT”.
I hope this resolves the issue.
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!