Byte Size of Fixed Point numbers in Matlab
Show older comments
Hi,
I am using extensively fixed point representation of numbers. For example:
fixed = fi( 0.567, 1, 16, 15 );
Checking now how many Byte in memory are allocated for the variable fixed, I discovered:
whos
Name Size Bytes Class Attributes
fixed 1x1 324 embedded.fi
I expected a much smaller overhead for such data type, given the fact that I just want to represent a 16 bit number (2Byte).
Why is it so? Are there other better options?
I am asking in order to speed up Monte Carlo simulations.
Thanks
Marco
Accepted Answer
More Answers (0)
Categories
Find more on HDL-Optimized Algorithm Design 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!