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

1 次查看(过去 30 天)
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