Passing a String from Matlab to a Fortran Mex Function
显示 更早的评论
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
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Fortran Source MEX Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!