How to use griddata in simulink's matlab function block?
조회 수: 13 (최근 30일)
이전 댓글 표시
Hi,
I want to use griddata in simulink's matlab function block. But when I do this I saw error statements in Simulink as shown below
- The function 'griddata' is not supported for standalone code generation. See the documentation for coder.extrinsic to learn how you can use this function in simulation.
Can anyone tell me what would be the problem
Thank you,
Manoj.
댓글 수: 0
채택된 답변
Walter Roberson
2019년 4월 28일
You can turn all acceleration off so that it does not attempt to generate code.
You can turn acceleration to the next lowest level, and put the line
coder.extrinsic('griddata');
in your code near the top. Code will be generated and will be able to call into matlab.
For any higher level of acceleration you would need to rewrite the code to not call griddata.
댓글 수: 4
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!