How to access a Fixed Point convert Look up table

조회 수: 3 (최근 30일)
MINAS KOUROUMPLAKIS
MINAS KOUROUMPLAKIS 2021년 7월 17일
답변: Sumukh 2024년 7월 25일
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