While using default medain function in simulink for calculating median i am facing overflow design error . Why is it so ?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Poorna Chandra Rao Boddu
el 18 de Oct. de 2016
Respondida: Akshat Dalal
el 21 de Mzo. de 2025
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 comentarios
Respuestas (1)
Akshat Dalal
el 21 de Mzo. de 2025
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 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!