"arguments ... end" syntax input argument validation module group supports C code generation?
이전 댓글 표시
The latest version of Matlab Coder does not seem to support the use of "arguments...end" module in functions. If so, I don't have to specify the type and size of each input argument before calling the "codegen" function?
I hope this will be enhanced in future versions!
-------2022.3.24 update--------
try/catch shoud also support C code generation.
댓글 수: 6
Denis Gurchenkov
2022년 3월 16일
We are working on supporting argument blocks in MATLAB Coder.
Can you please attach some examples of how would you use it, what types, sizes etc your inputs would have. This would help us make sure the feature works for you. If you don't want to publish your code here, please contact the MathWorks technical support and ask them to pass your example to MATLAB Coder team. Thanks!
xingxingcui
2022년 3월 17일
Steven Lord
2022년 3월 24일
Incidentally, is the theme "generate only one c file" sure to appear in the next version of R2022b?
In general we do not comment on future plans.
xingxingcui
2022년 3월 24일
Gregory Warnes
2022년 5월 7일
An example I just tried to use:
function [a, b, c, d, e]=myfun(find_file)
arguments
find_file (1,1) logical = true
end
Richard McCormack
2022년 5월 10일
Thank you for the example, Gregory! Please keep an eye out for future releases of MATLAB Coder, we hope to get this feature to you soon.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!