Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
I want to lebel the 6 solution on the curves of my plot but idont know how to: here is my matlab script below:
조회 수: 1 (최근 30일)
이전 댓글 표시
clear all
close all
func =@(i,j) y(j)^2 - log(y(j))^2 - 4*log(x(i)) - 4*(1/x(i)) - 3;
x = 0.7:0.05:1.5;
y = 0.7:0.05:1.5;
for i = 1:length(x)
for j = 1:length(y)
c(i,j) = y(j)^2 - 2*log(y(j)) - 4*log(x(i)) - 4*(1/x(i));
end
end
contour(x,y,c);xlabel('r/r_c');ylabel('(v/c_s)^2');
xlabel('r/r_c');ylabel('(v/c_s)^2');
colorbar;colormap('parula');
xticks(1:round(length(x)/10):length(x));
xticklabels(x(1:floor(length(x)/10):end));
yticks(1:round(length(y)/10):length(y));
yticklabels(y(1:floor(length(y)/10):end));
답변 (1개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!