How to access a Fixed Point convert Look up table

3 visualizaciones (últimos 30 días)
MINAS KOUROUMPLAKIS
MINAS KOUROUMPLAKIS el 17 de Jul. de 2021
Respondida: Sumukh el 25 de Jul. de 2024
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

Respuestas (1)

Sumukh
Sumukh el 25 de Jul. de 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 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.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by