You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
The Mathworks supplied Fortran mxCopyCharacterToPtr and mxCopyPtrToCharacter routines do not work. This submission contains two drop-in replacement routines that do work. They have the same argument signatures as the Mathworks routines. Simply include them with your Fortran source code and they will override the Mathworks library functions.
Also included are two test driver mex functions to demonstrate the use of the routines.
Cite As
James Tursa (2026). Fortran mex: mxCopyCharacterToPtr and mxCopyPtrToCharacter (https://au.mathworks.com/matlabcentral/fileexchange/20860-fortran-mex-mxcopycharactertoptr-and-mxcopyptrtocharacter), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (9.5 KB)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | Confirmed that Compaq Visual Fortran does not support the %REF construct properly in the original files. So I am including versions that do not use %REF. These should work with Compaq Visual Fortran. |