typecast and typecastx C-mex functions

typecast and typecastx are mex functions that mimic the MATLAB typecast function with extensions

Download
Download

You are now following this Submission

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 .

General Information

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.

Download
1.2.0

Fixed a sparse matrix bug.

Download
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.

Download
1.0.0

I am adding an m-file so that "help typecast" will work.

Download