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
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