Fixed point converter: Ignore code part.
Mostrar comentarios más antiguos
I am using the HDL Coder and escape an Inputparser with
if coder.target('MATLAB')
p = inputParser;
%...Inputparser Stuff
addOptional(p, 'variable', 'default', @(x)ischar(x));
%...Inputparser Stuff
else
%if nargin = ...
end
The C Coder gets through the code fine, but the fixed-point converter does not skip the coder.target('MATLAB') code.
'@(x)ischar(x)' is an anonymous function. Anonymous functions are not supported for fixed-point conversion.
Is there any possibility to tell the fixed point converter to skip these lines?
5 comentarios
Kiran Kintali
el 9 de Mzo. de 2020
Can you share the design and the project?
Thanks
Jan Siegmund
el 10 de Mzo. de 2020
Editada: Jan Siegmund
el 10 de Mzo. de 2020
Jan Siegmund
el 10 de Mzo. de 2020
Kiran Kintali
el 31 de Mzo. de 2020
We have noted the enhancement to ignore coder.target('MATLAB') during fixed-point conversion. Thanks for the representative sample code.
Jan Siegmund
el 2 de Abr. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Automated Fixed-Point Conversion in MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!