Are the 5G toolbox functions coder friendly? I am getting errors while generating C++ code for some 5G toolbox functions. (v2019a)
Show older comments
In some functions, the array sizes are dynamically changing which is not supported by coder. This gives errors in coder.
Some functions require inputs to be of bigger bitwidth (uint8 or double) where logical would also have sufficed. These datatypes are validated at the inputs. In order to make coder pass, we are giving bigger datatypes. Is there a way to get around this?
Accepted Answer
More Answers (1)
Graham Freeland
on 4 Nov 2019
0 votes
Hi Pranjali,
Regarding the dynamic array sizes, can you state the specific functions that you are referring to, and, if appropriate, the usage which requires them to be dynamic. For code generation troubleshooting, we really need to know the details.
Regarding the data types, a C99 boolean is at least a char and on most platform will probably map to the same size as an unit8. So, a logical will not be 'bigger', without resorting to bitpacking representations etc.
Graham
Categories
Find more on MATLAB Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!