How to programmatically get input and output types for C code generation in Matlab Coder?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to write custom initialization and termination functions in Matlab Coder for C source code generation. I know that I could either use the codegen functionality of using CustomInitializer or CustomTerminator or the Matlab Coder App "Custom Code" tab.
I want to use the input and output variables to the main entry point in codegen or Matlab Coder in the initializer and terminator functions. How could I do that to build a custom toolchain?
2 Kommentare
Darshan Ramakant Bhat
am 30 Jun. 2021
Can you please explain your usecase with a simple example ?
Are you looking to access the type of the gnerated functions in C ( like int,float etc ) ?
The output types are actually inferred from the input types during codegen, so it may not be possible to access them before hand.
You can check the documentation of coder.getArgsType() and see if that helps your usecase :
Antworten (0)
Siehe auch
Kategorien
Mehr zu MATLAB Coder 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!