sizeof

Return the number of bytes of a builtin data type.

You are now following this Submission

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 (2026). sizeof (https://www.mathworks.com/matlabcentral/fileexchange/16595-sizeof), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Compression Routines

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0