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 Center および File ExchangeMATLAB Coder についてさらに検索

タグ

タグが未入力です。

製品


リリース

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by