Fixed point converter: Ignore code part.
조회 수: 2 (최근 30일)
이전 댓글 표시
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
Kiran Kintali
2020년 3월 31일
We have noted the enhancement to ignore coder.target('MATLAB') during fixed-point conversion. Thanks for the representative sample code.
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Automated Fixed-Point Conversion in MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!