Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Really need a help on plotting this simple plot into 3D plot
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
% 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 Kommentar
Azzi Abdelmalek
am 5 Jul. 2014
Bearbeitet: Azzi Abdelmalek
am 5 Jul. 2014
What is the aim of attaching the same figure twice? you can also post your data as one matrix with 3 columns
Antworten (1)
Azzi Abdelmalek
am 5 Jul. 2014
If M is your matrix with three column
comp=M(:,1);
temp=M(:,2)
pres=M(:,3)
plot3(temp,comp,pres)
grid
3 Kommentare
Azzi Abdelmalek
am 6 Jul. 2014
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]
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!