contour and contour plot 3 not working

Hello!
Despite all the good documentation out there, I cannot get my countour plot to work.
I want a simple contour plot for function x^2*y and levels 1 and 3.
Thank you!
[X,Y] = meshgrid(-5:0.25:5);
Z = X^2.*Y;
contour3(Z,1)
hold on
contour3(Z,3)
contour(Z)

댓글 수: 3

darova
darova 2019년 7월 7일
Guess where you forgot the point '.'
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 7월 7일
@darova yes
am
am 2019년 7월 7일
편집: am 2019년 7월 7일
Thank you, you are angels! How do I accept your answer?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Contour Plots에 대해 자세히 알아보기

태그

질문:

am
2019년 7월 7일

편집:

am
2019년 7월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by