Can anyone help me plot the graph for below equation using matlab code?
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Gowtham Kumar Ganji
el 6 de Abr. de 2021
Comentada: Walter Roberson
el 7 de Abr. de 2021

3 comentarios
Respuesta aceptada
Walter Roberson
el 6 de Abr. de 2021
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 comentarios
Walter Roberson
el 7 de Abr. de 2021
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
fsurf(T, [1e-1 1 0 12]); xlabel('R'); ylabel('\xi');
Walter Roberson
el 7 de Abr. de 2021
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
Lxi = 1./(lambda*nu);
Uxi = 2./(lambda*nu);
fplot(T, [Lxi, Uxi])
Más respuestas (0)
Ver también
Categorías
Más información sobre Conversion Between Symbolic and Numeric en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


