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

2 views (last 30 days)
Dianta
Dianta on 20 Mar 2014
Edited: Youssef Khmou on 20 Mar 2014
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 Comment
Star Strider
Star Strider on 20 Mar 2014
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).

Sign in to comment.

Answers (1)

Youssef  Khmou
Youssef Khmou on 20 Mar 2014
Edited: Youssef Khmou on 20 Mar 2014
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))

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!