typecast and typecastx C-mex functions
typecast and typecastx are mex functions that mimic the MATLAB typecast function with extensions
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
James Tursa (2026). typecast and typecastx C-mex functions (https://www.mathworks.com/matlabcentral/fileexchange/17476-typecast-and-typecastx-c-mex-functions), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: cachedcall, num2vpi - Converts input exactly into vpi, DataHash
General Information
- Version 1.3.0 (14.7 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.3.0 | Added capability for char and logical types. Added the typecastx files for convenience. |
||
| 1.2.0 | Fixed a sparse matrix bug. |
||
| 1.1.0 | Changed algorithm from deep data copy to shared data copy. Thus the C-mex typecast is more efficient than the MATLAB intrinsic typecast. Also added the capability to handle complex inputs. |
||
| 1.0.0 | I am adding an m-file so that "help typecast" will work. |