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
Azzi Abdelmalek 2013년 5월 25일

0 개 추천

[x,y] = meshgrid(0:.2:2, 0:.2:2);
z = 8*log(x.*y);
surf(x,y,z);

댓글 수: 1

Azzi Abdelmalek
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);

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

카테고리

제품

질문:

2013년 5월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by