From: Wayne Padgett on
I am writing embedded matlab code that will eventually target an FPGA. If I use a function to implement a lookup table, I want to make sure the constant table only occurs once. How should I implement the table? I can't find a constant declaration, and initializing it within the function seems likely to produce many copies if I reuse the function. I could pass the table in as an input to the function, but that might be tedious if the function is a low-level one, called by many others. Is a global variable the best answer?
 | 
Pages: 1
Prev: matlab compiler error
Next: Bits to bytes