필터 지우기
필터 지우기

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 CenterFile Exchange에서 Bar Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by