Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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

Risposte (1)

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

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by