Clear Filters
Clear Filters

Fixed point converter: Ignore code part.

4 views (last 30 days)
I am using the HDL Coder and escape an Inputparser with
p = inputParser;
%...Inputparser Stuff
addOptional(p, 'variable', 'default', @(x)ischar(x));
%...Inputparser Stuff
%if nargin = ...
The C Coder gets through the code fine, but the fixed-point converter does not skip the'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?
Kiran Kintali
Kiran Kintali on 31 Mar 2020
We have noted the enhancement to ignore'MATLAB') during fixed-point conversion. Thanks for the representative sample code.

Sign in to comment.

Accepted Answer

Jan Siegmund
Jan Siegmund on 2 Apr 2020
Ignoring a code part in fixed point converter is currenty(R2019b) not supported.
Comment out the section as a temporary fix.

More Answers (0)




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!