How to find error between two figures?

1 回表示 (過去 30 日間)
Myo Gyi
Myo Gyi 2018 年 10 月 18 日
編集済み: Myo Gyi 2018 年 10 月 20 日
if true
% code
end

採用された回答

Walter Roberson
Walter Roberson 2018 年 10 月 18 日
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)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by