Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Really need a help on plotting this simple plot into 3D plot
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
% 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 comentario
Azzi Abdelmalek
el 5 de Jul. de 2014
Editada: Azzi Abdelmalek
el 5 de Jul. de 2014
What is the aim of attaching the same figure twice? you can also post your data as one matrix with 3 columns
Respuestas (1)
Azzi Abdelmalek
el 5 de Jul. de 2014
If M is your matrix with three column
comp=M(:,1);
temp=M(:,2)
pres=M(:,3)
plot3(temp,comp,pres)
grid
3 comentarios
Azzi Abdelmalek
el 6 de Jul. de 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]
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!