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

2 ビュー (過去 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 Center および File Exchange2-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