sizeof
Version 1.0.0.0 (519 Bytes) by
Charles Simpson
Return the number of bytes of a builtin data type.
2.1K 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 (2026). sizeof (https://uk.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 LinuxCategories
Find more on Data Types in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: Compression Routines
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
