how i can plot two 3 D graph in one 3D graph?

조회 수: 1 (최근 30일)
Dianta
Dianta 2014년 3월 20일
편집: Youssef Khmou 2014년 3월 20일
I have 2 serie of data :
data 1 S = [10 20 30 50 70 80 90 95]; Se = [90 80 70 50 30 20 10 5] K1 = [1.5553 1.42549 1.28576 1.47179 1.04928 1.7926 1.77855 1.99187;
data 2 Te = [100 95 90 85 80 75 30 20 10 0]; Se = [ 0 5 10 15 20 25 70 80 90 10]; K2 = [ 2.00326 1.65096 1.39187 1.2393 1.18937 1.16774 1.19548 1.1927 1.45734 1.70034];
How i can plot 2 data in one graph with x = S, y = Te, Z = Se
  댓글 수: 1
Star Strider
Star Strider 2014년 3월 20일
You cannot with your data. The vectors S, Te, Se have to be the same lengths. S and Se in data 1 are both (1x8), the others are (1x10).

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

답변 (1개)

Youssef  Khmou
Youssef Khmou 2014년 3월 20일
편집: Youssef Khmou 2014년 3월 20일
hi, as you described you should use :
n1=length(S);
n2=length(Te);
n3=length(Se);
n=min([n1 n2 n3]);
plot3(S(1:n),Te(1:n),Se(1:n))

카테고리

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