Can anyone help me plot the graph for below equation using matlab code?

 Accepted Answer

Pi = pi; %use Pi = sym(pi) if you want to work symbolic
T = T_0 + Q_p./(2.*Pi.*k) .* exp(-lambda.*nu.*xi) .* exp(-lambda.*nu.*R)./R
I wonder why they did not combine the exp() ? exp(-lambda.*nu.*(xi+R))./R

2 Comments

Pi = sym(pi); %use Pi = sym(pi) if you want to work symbolic
T_0 = 300;
Q_p = rand() * 1000;
k = rand() * 10;
lambda = rand() / 100;
nu = rand();
Lxi = 2./(lambda*nu);
Uxi = 1./(lambda*nu);
syms xi R
T = T_0 + Q_p./(2.*Pi.*k) .* exp(-lambda.*nu.*xi) .* exp(-lambda.*nu.*R)./R
T = 
fsurf(T, [1e-1 1 0 12]); xlabel('R'); ylabel('\xi');
E=-50*10^-3; %units m
y=15*10^-3; %units m
z=0; %units m
R= sqrt(E^2+y^2+z^2); %units m
k=64.167; %units J/min.sec.C
Q_p=2340; %units J/sec
lambda=28800;
nu=0.002083; %units m/sec
T_0=20; %unit C
Pi = sym(pi); %use Pi = sym(pi) if you want to work symbolic
syms xi
T = T_0 + Q_p./(2.*Pi.*k) .* exp(-lambda.*nu.*xi) .* exp(-lambda.*nu.*R)./R
T = 
Lxi = 1./(lambda*nu);
Uxi = 2./(lambda*nu);
fplot(T, [Lxi, Uxi])

Sign in to comment.

More Answers (0)

Categories

Find more on Physics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!