functions not supported by simulink coder

I have a function block in simulink and want to use the function "normcdf", but the simulink coder does not support this function. how can i overcome this issue ? thanks alot

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2013년 5월 3일

0 개 추천

Unfortunately, this function is not in the list of MATLAB functions supported for code generation. You might need to implement a C-equivalent yourself (or try to find an equivalent third-part library function), and integrate it into a custom Simulink block.

댓글 수: 5

pemfir
pemfir 2013년 5월 3일
But this is not straight forward, i have heard that there is a command something like "external command" that can help with this issue, but i am not sure how.
pemfir: Do you mean using coder.extrinsic? That only works if your block is executing within the MATLAB environment, it does not generate standalone code which is what Simulink Coder does.
pemfir
pemfir 2013년 5월 4일
how do i go about doing the C-equivalent, can you help me get started ?
pemfir: Sorry, I have no experience in this area. You might want to get help from Statistics experts/forums.
pemfir
pemfir 2013년 5월 6일
Thank you, what i mean, is that a simple example of such implementation, it does not have to be normcdf, any function would be good, so i can get started.

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

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

질문:

2013년 5월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by