can anyone give me a way to avoid zero division in divide block in simulink..
cause i always have a problem with zero division or in singularities..
thanks
What do you expect the simulation to do when there does come a
computation with a divide by zero error occurs? I'm not sure if there
is a generic block for this - you could always use a switch that takes
in the 'denominator' and checks for a zero - if there is one, take an
alternate path or add a small offset to the denominator before
continuing on.
realmin is 2.2251e-308 so it does not have any effect on any practical
division.
G.
"Didi Istardi" <ist...@gmail.com> wrote in message
news:gmkt01$os$1...@fred.mathworks.com...
now my simulation don't have problem again
"Giampiero Campa" <Giampie...@mail.wvu.edu> wrote in message <gmpdjn$12e$1...@fred.mathworks.com>...