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
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')
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!