Convert rt_roundd to private function
5 次查看(过去 30 天)
显示 更早的评论
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;
}
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!