problem in generating standalone c/c++ code
1 回表示 (過去 30 日間)
古いコメントを表示
Hi
I am using Matlab R2013a. My line in a function is
coder.extrinsic('autocorr');
acf = autocorr(aX,[],2);
The function passed 'Check Code Generation for readiness'.
I want to generate c/c++ code for my function. After building a project, passing this function, defining the input data types, and then using BUILD for C/C++ STATIC LIBRARY output, I am getting error as follows
??? The extrinsic function 'autocorr' is not available for standalone code generation. It must be eliminated for stand-alone code to be generated. It could not be eliminated because its outputs appear to influence the calling function. Fix this error by not using 'autocorr' or by ensuring that its outputs are unused
0 件のコメント
採用された回答
Walter Roberson
2015 年 7 月 29 日
Mathworks does not provide generated code for autocorr. See http://www.mathworks.com/help/coder/ug/functions-supported-for-code-generation--alphabetical-list.html You will need to define your own autocorr routine if you want to use generated C/C++ code.
2 件のコメント
Walter Roberson
2015 年 7 月 30 日
kurtosis and iqr were added in R2013b, the version after you have. See http://www.mathworks.com/products/new_products/MATLAB-Coder-R2013b.pdf
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!