I just updated Matlab 2014a. I have many scripts that use the Symbolic Math Toolbox, which worked fine, but now click the following error:
Error using mupadmex
Error in MuPAD command: Division by zero. [_power]
Evaluating: symobj::trysubs
I cannot post my actual code here, but here is a simplified example:
syms f x y
f = x/y
results = double(subs(f, {'x','y'}, {1:10,-4:5}))
In my actual script, I pass two grids of 23x23 values to a complex function, and I do not know in advance which of these values will lead to division by zero. Everything I can find on Google just tells me not to try to make an estimate that will lead to a division by zero. Not healthy! I used to get "inf" (or "NaN" - I can’t remember exactly) for those whom he couldn’t appreciate, which I could easily filter when I take the next steps on this data.
Does anyone know how to make Matlab 2014a return to this behavior and not throw an error? Or am I doomed to a lifelong version of Matlab forever, or am I experiencing significant pain from changing my approach to this to avoid dividing by zero?
source
share