While using default medain function in simulink for calculating median i am facing overflow design error . Why is it so ?
2 次查看(过去 30 天)
显示 更早的评论
I have used a matlab function block in simulink for calculating median. It is simple function defined as below
function y = medianC(u)
y = median(u);
Now using sldv I am trying to find design errors then i am facing overflow error. Why is it so ?
0 个评论
回答(1 个)
Akshat Dalal
2025-3-21
Hi Poorna,
I believe since SLDV is a static analysis tool, it does not analyse the possible value of the input 'u' unless you explicitly specify it. Thus, it considers that the median can potentially large values which will cause overflow. If that's not the case, you need to explicity specify the bounds for your inputs after which the overflow design error should get removed.
Thanks,
Akshat.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!