Fixed point converter: Ignore code part.
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jan Siegmund
le 9 Mar 2020
Réponse apportée : Jan Siegmund
le 2 Avr 2020
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 commentaires
Kiran Kintali
le 31 Mar 2020
We have noted the enhancement to ignore coder.target('MATLAB') during fixed-point conversion. Thanks for the representative sample code.
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Types dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!