필터 지우기
필터 지우기

Code generation for fuzzy logic model and recursive function with the Matlab Coder

조회 수: 3 (최근 30일)
Oliver
Oliver 2012년 9월 6일
답변: don sani 2021년 8월 20일
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

답변 (4개)

Arnab De
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.

Oliver
Oliver 2012년 9월 12일
I can't work with the extrinsic statement, because I have to translate my fuzzy logic model into C-Code. I want to use it later on independent from Matlab. That is why, I need everything as C-Functions.
My actual question is/was how to do that.
Cheers Oliver
  댓글 수: 2
Mike Hosea
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.
Oliver
Oliver 2012년 9월 13일
Thanks Mike,
that's all I needed to know. At least, now it is for certain, that is not possible to generate C-Code directly from a Fuzzy Logic Model.

댓글을 달려면 로그인하십시오.


Michael  Osumune
Michael Osumune 2018년 5월 20일
Hi,
Has this question been resolved because I am having same problem. Thanks
  댓글 수: 1
Walter Roberson
Walter Roberson 2018년 5월 20일
In R2018a, it is still not possible to generate code for anything in the Fuzzy Logic Toolbox.

댓글을 달려면 로그인하십시오.


don sani
don sani 2021년 8월 20일
Did the new version of matlab help in resolving these issue????

카테고리

Help CenterFile Exchange에서 Deployment에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by