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 次查看(过去 30 天)

回答(1 个)

Voss
Voss 2022-12-10
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')

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by