Convert rt_roundd to private function

5 ビュー (過去 30 日間)
凯贤
凯贤 2023 年 2 月 14 日
回答済み: 凯贤 2023 年 2 月 17 日
I have two SWCs, they both create function 'rt_roundd', which cause conflicts. Can I add SWC name before it, like SWC-A_rt_roundd, SWC-b_rt_roundd.
float64 rt_roundd(float64 u)
{
float64 y;
if (fabs(u) < 4.503599627370496E+15) {
if (u >= 0.5) {
y = floor(u + 0.5);
} else if (u > -0.5) {
y = 0.0;
} else {
y = ceil(u - 0.5);
}
} else {
y = u;
}
return y;
}

採用された回答

凯贤
凯贤 2023 年 2 月 17 日
我找到解决方案了,在“设置-代码生成-接口-共享代码存放置”,改成“共享位置”就可以了。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by