Can anyone help me plot the graph for below equation using matlab code?
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Réponse acceptée
Walter Roberson
le 6 Avr 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 commentaires
Walter Roberson
le 7 Avr 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
le 7 Avr 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])
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Conversion Between Symbolic and Numeric 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!



