Code generation for fuzzy logic model and recursive function with the Matlab Coder
1 次查看(过去 30 天)
显示 更早的评论
I developed a fuzzy model in a Matlab function and like to generate (with the Matlab Coder) a mex function out of it. Furthermore I have a recursive Matlab function, which I also like to have as a mex function.
The Matlab Coder says, that recursive calls are not allowed. I can't figure out how to make C-Code out of my Fuzzy Logic Model either. It seems that Functions like:
readfis('...')
evalfis(...)
are not supported, because they are not in the list of supported Matlab Coder functions. But there has to be a way. Is there a workaround for these 2 problems. Cheers, Oliver
0 个评论
回答(4 个)
Arnab De
2012-9-9
You can declare the functions not supported by MATLAB Coder as coder.extrinsic. The extrinsic functions are not compiled by MATLAB Coder, rather they are executed by MATLAB directly... but rest of your code will be compiled into the mex function. Note that extrinsic declarations do not work for non-mex code generation.
0 个评论
Oliver
2012-9-12
2 个评论
Mike Hosea
2012-9-13
Sorry, as far as I know, nothing in the Fuzzy Logic Toolbox is currently supported for code generation. We would welcome your suggestions for which functions/features should be the highest priority to support, but I do not know when support will be added.
Michael Osumune
2018-5-20
Hi,
Has this question been resolved because I am having same problem. Thanks
1 个评论
Walter Roberson
2018-5-20
In R2018a, it is still not possible to generate code for anything in the Fuzzy Logic Toolbox.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deployment 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!