Matlab Coder coder.resize and coder.typeof unsupported for code generation
Ältere Kommentare anzeigen
Hello,
I was wondering why these functions as well as a couple are unsupported seeing as they are part of the Matlab coder toolbox itself, here is the error message I am getting;
----
The function 'typeof' is not supported for standalone code generation. See the documentation for coder.extrinsic to learn how you can use this function in simulation.
Function 'foo.m' (#404.3235.3258), line 45, column 48:
"coder.typeof(char(zeros(1, 7)))"
Launch diagnostic report.
----
Is this something I am doing wrong or is this a bug the coder itself
Regards
Daniel
5 Kommentare
Arnab De
am 30 Apr. 2013
They are indeed unsupported for code generation. These functions are only used to specify input types for codegen. Do you have any other use case for these functions?
Daniel Clarke
am 30 Apr. 2013
Arnab De
am 30 Apr. 2013
Can you please paste a representative code snippet that reproduces your problem?
Daniel Clarke
am 30 Apr. 2013
Arnab De
am 1 Mai 2013
I do not see any problem with the code you pasted here. Most probably, some other part of the code is causing the problem. Can you open the report and check where exactly the size mismatch is happening?
Antworten (1)
Fred Smith
am 3 Mai 2013
0 Stimmen
coder.resize and coder.typeof are used to construct and manipulate types that are passed as inputs to the codegen command. They cannot be used from the MATLAB Code that you are generating code from.
-Fred
Kategorien
Mehr zu Simulink Coder finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!