简体   繁体   中英

Matlab coder for “spline” function

Using the built in function of MATLAB coder, which converts matlab to c++, is it possible to convert internal matlab functions like spline? I follow the directions from http://blogs.mathworks.com/loren/2011/11/14/generating-c-code-from-your-matlab-algorithms/ but I get errors on variables from even the beginning when trying convert the spline function. Has anyone had success with this. I imagine matlab would need to convert ppval, mkpp, unmkpp etc...

Specifically speaking, almost every line gives me an error, with the first line:

[x,y,sizey,endslopes] = chckxy(x,y);

giving the error

  Undefined function or variable 'chckxy'.

But when i do "edit chckxy" matlab says it doesnt exist, so im not sure how to get around it.

Only a subset of functions are currently supported with MATLAB Coder. In your case, it seems like the function chckxy does not exist in MATLAB or it is an internal function (private or MEX file).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM