Passing a String from Matlab to a Fortran Mex Function
Show older comments
I am passing a string from a Matlab routine to a Fortran mex function. However, I am not having much luck pulling it out in the Fortran.
% My Simple Matlab Code:
%
temp_string = 'This is a place of business';
Call_String_Test(temp_string);
Could someone please help me to get this string pulled out and printed in the Fortran mex function. I have tried mxgetstring, mxcopyptrtocharacter, mxgetchars, and others. I can't seem to get the write syntax. I either get compiler errors, or matlab blows up. TIA, RICK
Accepted Answer
More Answers (0)
Categories
Find more on Fortran Source MEX Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!