Best way to write this function in matlab while using eps in the denominator to avoid zero
4 次查看(过去 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 个评论
KSSV
2016-11-28
Your denominator is x^2+y^2, it will be zero for x = y = 0. You have to skip these values. Post your full code.
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!