Clear Filters
Clear Filters

Best way to write this function in matlab while using eps in the denominator to avoid zero

1 view (last 30 days)
Here's what I had z = (xx.*yy.*(xx.^2-yy.^2))/(eps(xx.^2+yy.^2)); but I kept getting a rank deficient error

Answers (1)

Walter Roberson
Walter Roberson on 28 Nov 2016
z = (xx.*yy.*(xx.^2-yy.^2)) ./ (eps+(xx.^2+yy.^2));

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!