Fixed point converter: Ignore code part.

2 ビュー (過去 30 日間)
Jan Siegmund
Jan Siegmund 2020 年 3 月 9 日
回答済み: Jan Siegmund 2020 年 4 月 2 日
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
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.
Jan Siegmund
Jan Siegmund 2020 年 4 月 2 日
Thank you.

サインインしてコメントする。

採用された回答

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by