Import Function is not supported

조회 수: 15 (최근 30일)
WanYu
WanYu 2020년 5월 11일
댓글: David Fink 2020년 5월 12일
Hi,
I am converting my MATLAB code into C code using MATLAB Coder. However, this error popped out while I'm trying to convert it.
It said that the import statements below are not supported.
How am I supposed to modify the code? I need it for my project to run smoothly.
Thank you.

답변 (1개)

David Fink
David Fink 2020년 5월 11일
import is used to bring names into scope.
Instead of:
import x.y.*
functionInXY();
use
x.y.functionInXY();
Please contact MathWorks Technical Support to formally express your interest in supporting import in a future release.
  댓글 수: 6
WanYu
WanYu 2020년 5월 12일
Hi,
If I wish to call Java in my code from MATLAB Coder, it will not work?
David Fink
David Fink 2020년 5월 12일
If generating a MEX file, MATLAB Coder can call into MATLAB (which can call Java) via coder.extrinsic.
If generating standalone C code, MATLAB Coder cannot call into MATLAB or Java.

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

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by