Comments on: Detecting Divide by Zero Errors https://blogs.mathworks.com/simulink/2011/08/02/detecting-divide-by-zero-errors/?s_tid=feedtopost Guy Rouleau is an Application Engineer for MathWorks. He writes here about Simulink and other MathWorks tools used in Model-Based Design. Tue, 24 Jan 2017 17:31:17 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: KE https://blogs.mathworks.com/simulink/2011/08/02/detecting-divide-by-zero-errors/#comment-1795 Tue, 17 Apr 2012 20:00:03 +0000 https://blogs.mathworks.com/seth/2011/08/02/detecting-divide-by-zero-errors/#comment-1795 I ended up using the approach in the link below, but thanks for the head’s up (I did try the IC and it was unsuccessful as you indicated).
https://www.mathworks.com/support/solutions/en/data/1-F5WMK3/index.html?product=ML&solution=1-F5WMK3

]]>
By: Guy Rouleau https://blogs.mathworks.com/simulink/2011/08/02/detecting-divide-by-zero-errors/#comment-1792 Fri, 13 Apr 2012 18:02:16 +0000 https://blogs.mathworks.com/seth/2011/08/02/detecting-divide-by-zero-errors/#comment-1792 In reply to KE.

@KE, I am not sure if there is one “standard” option. I guess this depends on your application. For example, I have seen:

– Use one of the technique described here to use an alternate algorithm when the value to be divided is close or equal to 0.

– If you are getting this at the first time step, maybe it would be possible to use different initial conditions? (not the IC block, but initial conditions in Delays and Integrators)

]]>
By: KE https://blogs.mathworks.com/simulink/2011/08/02/detecting-divide-by-zero-errors/#comment-1791 Fri, 13 Apr 2012 16:10:15 +0000 https://blogs.mathworks.com/seth/2011/08/02/detecting-divide-by-zero-errors/#comment-1791 What is the standard approach to eliminating a divide by zero error? I am getting it at the first time step, yet setting an initial condition does not eliminate it.

]]>