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

1 次查看(过去 30 天)
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

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by