"arguments ... end" syntax input argument validation module group supports C code generation?

7 次查看(过去 30 天)
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 个评论
Richard McCormack
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.

请先登录,再进行评论。

采纳的回答

cui,xingxing
cui,xingxing 2022-10-10
编辑:cui,xingxing 2024-4-27
It is good to hear that this syntax supports C/C++ code generation since R2022b .
-------------------------Off-topic interlude, 2024-------------------------------
I am currently looking for a job in the field of CV algorithm development, based in Shenzhen, Guangdong, China,or a remote support position. I would be very grateful if anyone is willing to offer me a job or make a recommendation. My preliminary resume can be found at: https://cuixing158.github.io/about/ . Thank you!
Email: cuixingxing150@gmail.com
  2 个评论
Matan Silver
Matan Silver 2023-9-26
Just an update for future readers: In addition to supporting the arguments block in general for code generation (R2022b), starting in R2023b there is now support for omitting "-args" if you have a fully specified arguments block:
cui,xingxing
cui,xingxing 2023-9-27
@Matan Silver Thanks to you guys for adding timely comment annotations, R2023b is getting more and more compliant with the human touch!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by