How to find error between two figures?

1 vue (au cours des 30 derniers jours)
Myo Gyi
Myo Gyi le 18 Oct 2018
Modifié(e) : Myo Gyi le 20 Oct 2018
if true
% code
end

Réponse acceptée

Walter Roberson
Walter Roberson le 18 Oct 2018
You can change the lines
w=a*r.^2/(2*nu);
w0=a*r0^2/(2*nu);
theta=-Gamm_inf/(8*pi*nu)*(1/w0*(1-exp(-w0))-(1./w.*(1-exp(-w)))-expint(w)-expint(w0));
[x1, y1]=pol2cart(theta,r);
slightly to somethng like
w = @(r) a*r.^2/(2*nu);
w0 = a*r0^2/(2*nu);
theta = @(r) -Gamm_inf/(8*pi*nu)*(1/w0*(1-exp(-w0))-(1./w(r).*(1-exp(-w(r))))-expint(w(r))-expint(w0));
[x1, y1]=pol2cart(theta(r),r);
Then after you have done
R = Y(:,1);
THETA = Y(:,2);
you can also do
THETA_exact = theta(R);
[x1_diff, y1_diff] = pol2cart(THETA_exact - THETA, R);
figure()
plot(x1_diff, y1_diff)

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by