Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Really need a help on plotting this simple plot into 3D plot
1 回表示 (過去 30 日間)
古いコメントを表示
% I have some data sets for temperature and pressure ,
Composition Temperature Pressure
90 279.25 2.7
283.15 4.18
284.75 5.8
285.85 7.5
286.85 10.82
70 279.05 2.66
282.95 4.46
284.85 5.8
286.35 7.78
286.75 7.8
287.95 10.24
50 279.05 2.99
283.25 5.05
285.97 7.4
287.95 10.09
289.55 13.41
30 277.35 2.88
282.85 5.14
285.25 7.18
287.75 10.05
290.25 12.26
100 277.45 3.43
280.95 5.06
285.85 8.21
288.45 11.6
290.35 14.14
Each composition has its own temperature row and pressure row

which will make a curve when I plot them normally. Now I want to plot all the compositions and its respective curves in 3D plot environment. Attach is this figure for what I am look for as an end result, Can someone help me
1 件のコメント
Azzi Abdelmalek
2014 年 7 月 5 日
編集済み: Azzi Abdelmalek
2014 年 7 月 5 日
What is the aim of attaching the same figure twice? you can also post your data as one matrix with 3 columns
回答 (1 件)
Azzi Abdelmalek
2014 年 7 月 5 日
If M is your matrix with three column
comp=M(:,1);
temp=M(:,2)
pres=M(:,3)
plot3(temp,comp,pres)
grid
3 件のコメント
Azzi Abdelmalek
2014 年 7 月 6 日
Make your matrix as below
M=[90 279.25 2.7
90 283.15 4.18
90 284.75 5.8
90 285.85 7.5
90 286.85 10.82]
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!