Why am I not able to define input types of Entry-Point Function in MATLAB Coder 3.3 (R2017a)?

조회 수: 1 (최근 30일)
My code has many inputs but the following message was shown in the Define Input Types step in the MATLAB Coder APP. I can define input types with the same code in R2013b.
1. >> coder
2. Add Stiff_Matrix_Gen
3. Click Next
In the Define Input Types step,
-------------------------------------
Function Stiff_Matrix_Gen does not have any input arguments. No input type definitions are required.
-------------------------------------

채택된 답변

MathWorks Support Team
MathWorks Support Team 2017년 11월 6일
There is a bug in MATLAB Coder 3.3 (R2017a) in separated beginning lines of function code. This bug is fixed in R2017b. To work around this issue, combine beginning lines to contain input element in the first line.
For example,
In your code, it needs to be changed the three lines of function beginning.
Original:
-------------------------------------
function [Displacement_Results, Stress_Results, Restraint_Results, GlobalForce_Results] = ...
Stiff_Matrix_Gen ...
(CII_Element,CII_RIGID, ...
-------------------------------------
Modified:
-------------------------------------
function [Displacement_Results, Stress_Results, Restraint_Results, GlobalForce_Results] = Stiff_Matrix_Gen(CII_Element,CII_RIGID, ...
-------------------------------------

추가 답변 (0개)

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by