3D graphs with 3 variables function as Z

조회 수: 2 (최근 30일)
Mustafa
Mustafa 2011년 12월 3일
Hello to all could someone please tell me how to plot a 3d graph with x and y as distances and z as function that depends on 3 variabls ?! example: ???(x2,y2,q(n,ja,ka)) = (x,y,z) Regards

답변 (1개)

Naz
Naz 2011년 12월 3일
x=[1:10];
y=[1:10];
z=rand(1,10);
plot3(x,y,z)
  댓글 수: 2
Mustafa
Mustafa 2011년 12월 3일
it still doesn't accept z with more than 2 dimensions
Naz
Naz 2011년 12월 4일
I see. If your matrix z has size of XbyY, you can plot it as surf(x,y,z)

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

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by