필터 지우기
필터 지우기

How can i plot a 3d graph using a matrix?

조회 수: 2 (최근 30일)
Arman Kam
Arman Kam 2012년 7월 29일
I want to plot a 3D graph using a matrix and i want matrix values to be on Z axis and define values on X & Y axes separately.
Can you help me please?
Thanks

답변 (1개)

Walter Roberson
Walter Roberson 2012년 7월 29일
What kind of graph? What you describe could be for a surface graph,
surf(X, Y, Z)
or for a mesh(), or (with more work) a 3D line plot using plot3() (but then you have to say what should be connected to what)
  댓글 수: 2
Arman Kam
Arman Kam 2012년 7월 29일
I want to plot 3d bar graphs dear Walter.
Walter Roberson
Walter Roberson 2012년 7월 29일
You can use bar3() but it does not permit passing in Y values. You would have to modify the barseries returned by bar3, especially the coordinates in the patches that are children of the barseries.
Possibly there is a MATLAB File Exchange (FEX) contribution that does this work.

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

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by