"arguments ... end" syntax input argument validation module group supports C code generation?
1 回表示 (過去 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 件のコメント
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.
採用された回答
cui,xingxing
2022 年 10 月 10 日
編集済み: cui,xingxing
2024 年 4 月 27 日
2 件のコメント
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:
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!