필터 지우기
필터 지우기

plot 3 vectors on a 3D axis

조회 수: 1 (최근 30일)
Mahmoud Zeydabadinezhad
Mahmoud Zeydabadinezhad 2016년 4월 21일
답변: Walter Roberson 2016년 4월 21일
Hello All,
I have two vectors of the same size (X and Y) and another cell array contains 10 different labels (string) in it. So, basically for each label I have a set of X and Y. I like to plot Y vs. X in a 3D plot in a way that x-axis is horizontal, the y-axis is vertical, and z-axis goes into the screen. It would be great if I could do it like a surface so it shows hills and valleys.
Obviously, the x- and y- axes correspond to X and Y and z-axis shows the different labels.
Any idea how to do this?
Thank you!
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 4월 21일
How would you see the hills and valleys if the Z axis is into the screen? Z axis into the screen is a top-down (or bottom-up) view in which you cannot see the relative heights of anything.
You do not appear to have defined any z value.

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

답변 (1개)

Walter Roberson
Walter Roberson 2016년 4월 21일
text(X(:), Y(:), TheCellArrayOfLabels)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by