Assistance with contour plot?
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm trying to get the above contour, but I can only get the contour below.
Do you have any suggestions? The code I am using is :
f = @(x,y) x*y;
fcontour(f)
댓글 수: 2
Star Strider
2019년 9월 25일
Except for the labels, they appear to be the same contour plot.
What differences between them do you see?
답변 (1개)
Ankit
2019년 9월 25일
Hello Claire,
Just have a look here:
Regards
Ankit
댓글 수: 2
Ankit
2019년 9월 26일
Then I think your question is not clear to me. From the above two plots it seems like you need to have labels in your plot. What exactly is your requirement?
f = @(x,y) x*y;
hfc = fcontour(f);
contour(hfc.XData, hfc.YData, hfc.ZData, 'ShowText','on')
fcontour(f)
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!