In an Embedded MATLAB function, I can call a custom C function with EML.CEVAL.
It I pass a string as an argument, the generated code use a pointer to an array of char. I would like to pass the actual string.
For example, when generating C code for :
eml.ceval('MyCExternalFunction', arg1,['MyString' char(0)]);
I get :
MyCExternalFunction (arg1, tmp)
where tmp is a pointer to "MyString"
I would like to have :
MyCExternalFunction (arg1, "MyString")
Best Answer