필터 지우기
필터 지우기

Matlab C Coder app problem

조회 수: 1 (최근 30일)
Schiano Rosario
Schiano Rosario 2019년 1월 18일
댓글: Areej Varamban Kallan 2019년 1월 21일
I have already used the Coder app; since today, when I try to create a new porject, I receive the following error in the inputs autodefinition stage.
CoderFailure.png
The problem is present also if I call directly the function to be converted. If I manually provide inputs types, the coder is able to provide the associated c code. Unfortunately, i have to convert an m file with several input variables.
Is there someone that can help me to overcome the problem? I've already googled, but nothing was found.

답변 (1개)

Areej Varamban Kallan
Areej Varamban Kallan 2019년 1월 21일
Hi Schiano,
Before running the Autodefine Input Types test from MATLAB Coder Project GUI, manually copy the test file to the location of the function for which you are generating code. The copy operation should be performed using the copyfile command with 'f' as an argument. The command should look like:
copyfile(<'source'>,<'destination'>,'f');
The inclusion of the 'f' argement ensures that the source is copied to the destination irrespective of any write permissions.
  댓글 수: 2
Schiano Rosario
Schiano Rosario 2019년 1월 21일
Dear Areej,
thank you for the fast reply. The destination name is randomly generated each time and cannot be copied by selecting in the pop-up message. I also tried to run matlab as administrator, but nothing changed
Rosario
Areej Varamban Kallan
Areej Varamban Kallan 2019년 1월 21일
Hi Schiano,
'source' refers to your test file 'testSum.m' with full path. 'destination' is the folder in which the function for which you are generating the code is located.

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

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by