What is the script to plot the following function? I am trying to plot a vector that exists in the y and z directions, the <> symbolizes a vector. Thanks
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
0 commentaires
Réponses (1)
Voss
le 10 Déc 2022
r = 0.001:0.001:3; % some r values
mu = 1; % some mu value (could be a vector the same size as r)
x = zeros(size(r));
y = -0.125.*r + 1.125./r;
z = 1./mu.*(1.25.*r.^2+9.103.*log(r)+1.296)-0.5.*log(r);
figure
plot3(x,y,z)
xlabel('x')
ylabel('y')
zlabel('z')
% or perhaps
figure
plot(y,z)
xlabel('y')
ylabel('z')
0 commentaires
Voir également
Catégories
En savoir plus sur Line Plots 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!