필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Really need a help on plotting this simple plot into 3D plot

조회 수: 2 (최근 30일)
Nasir Qazi
Nasir Qazi 2014년 7월 5일
마감: MATLAB Answer Bot 2021년 8월 20일
% 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
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
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
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!

Translated by