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