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!