inputParser not supported by MATLAB Coder
29 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Martin Ryba
am 15 Jul. 2024 um 20:33
Bearbeitet: Matt J
am 15 Jul. 2024 um 22:55
I started to get into the habit of using inputParser to manage construction options to MATLAB classes I create. It just seems like the cleanest, most future-proof way to go about doing it. Now, I just hit a very annoying brick wall. I wanted to run one of these through MATLAB Coder to make a C++ version to at least serve as a template for a bit of production code. BOOM! MATLAB Coder doesn't like functions/classes that use inputParser. Is there anyone who's found a good workaround?
0 Kommentare
Akzeptierte Antwort
David Fink
am 15 Jul. 2024 um 20:54
Many of the use cases handled by inputParser are now supported by the arguments block, which supports code generation.
This modern syntax includes support for required, optional, repeating, and named arguments, argument validation, and default values.
2 Kommentare
Matt J
am 15 Jul. 2024 um 22:53
Bearbeitet: Matt J
am 15 Jul. 2024 um 22:55
inputParser can't be deprecated, because it has functionality that is still not supported by the newer framework, e.g., StructExpand.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Manage Products finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!