Hello,
I use Matlab Coder and i use the function coder.ceval for use C++ function when i generate my C++ code.
But Matlab make a lot of error (use the value of the variable instead the name variable …)
So i search to know if it is possible to put directly the C++ code on the .m instead use coder.ceval for have the good code C++ after the generation with Matlab Coder ?
For example : I use
If isempty(coder.target)Texte=int2str(Variable);elsecoder.ceval(sprintf,Texte,'"%d"',Variable);end
But Matlab Coder make some error, i would use something like this :
If isempty(coder.target) Texte=int2str(Variable); else A_Function('sprintf(Texte,"%d",Variable);'); end
Do you know if somethings like that exist ? Thank you for your help.
Best Answer