sizeof

Return the number of bytes of a builtin data type.
2K Downloads
Updated 26 Sep 2007

No License

Similar to the sizeof keyword in C, return the number of bytes of a builtin data type.

Example:
nbytes = sizeof('single');

Cite As

Charles Simpson (2024). sizeof (https://www.mathworks.com/matlabcentral/fileexchange/16595-sizeof), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Data Types in Help Center and MATLAB Answers
Acknowledgements

Inspired: Compression Routines

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0