Error when plotting a graph
이전 댓글 표시
How can I plot these five functions? I already tried everything.

the d) I tried:
[x,y] = meshgrid(-2:.2:2, -2:.2:2); z = 8*log(x*y); surf(x,y,z);
but the graph is wrong.
Thank You =]
답변 (1개)
Azzi Abdelmalek
2013년 5월 25일
[x,y] = meshgrid(0:.2:2, 0:.2:2);
z = 8*log(x.*y);
surf(x,y,z);
댓글 수: 1
Azzi Abdelmalek
2013년 5월 25일
편집: Azzi Abdelmalek
2013년 5월 25일
If you want to use a complex logarithme, use
[x,y] = meshgrid(-2:.2:2, -2:.2:2);
z = abs(8*log(x.*y));
surf(x,y,z);
카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!