How to plot 2D in 3D?

조회 수: 19 (최근 30일)
Ravikiran Mundewadi
Ravikiran Mundewadi 2021년 1월 9일
댓글: Walter Roberson 2021년 1월 10일
I have say
X_datas = [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1]
Y_datas = [0 1.12 2.26 3.14 4.22 5.66 1.56 7.45 8.04 9.52 1]
How to plot 3D using these datas?

채택된 답변

Walter Roberson
Walter Roberson 2021년 1월 9일
X_datas = [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1];
Y_datas = [0 1.12 2.26 3.14 4.22 5.66 1.56 7.45 8.04 9.52 1];
Z_datas = zeros(size(X_datas));
plot3(X_datas, Y_datas, Z_datas); xlabel('x'); ylabel('y'); zlabel('z')
  댓글 수: 3
Ravikiran Mundewadi
Ravikiran Mundewadi 2021년 1월 10일
How to plot ODE in 3D plot?
Walter Roberson
Walter Roberson 2021년 1월 10일
For surface or meshgrid you need three variables.

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

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by