Plotting Temperature with respect to time in MATLAB from a file??
이전 댓글 표시
Hello!!! Everyone,
I am making a Data Logger Project and had stored Log in Memory Card, and wants to plot the Temperature Data with Respect to time in MATLAB.
18:41:03,05/10/13,025.7C,+024.5C,060.0%,000.00m/s,0,0000.0mm,0000.0mm
18:41:17,05/10/13,025.7C,+024.8C,060.0%,000.00m/s,0,0000.0mm,0000.0mm
18:41:32,05/10/13,025.4C,+024.8C,059.3%,000.00m/s,0,0000.0mm,0000.0mm
18:41:48,05/10/13,025.7C,+025.1C,059.3%,000.00m/s,0,0000.0mm,0000.0mm
18:29:50,05/10/13,026.0C,+024.8C,059.0%,000.00m/s,0,0000.0mm,0000.0mm
18:30:04,05/10/13,025.7C,+024.8C,058.7%,000.00m/s,0,0000.0mm,0000.0mm
18:30:04-> Time
05/10/13-> Date
025.7C -> Unit Temperature
+024.8C -> Atmosphere Temperature
058.7% -> Relative Humidity
Rest are Not useful
Can any one tell how to plot Temperature w.r.t time for each day on Separate graphs(Figure in MATLAB)
Please Help
채택된 답변
추가 답변 (1개)
Arun Sharma
2013년 10월 7일
편집: Walter Roberson
2013년 10월 7일
댓글 수: 3
Walter Roberson
2013년 10월 7일
You are going to need to change the 'YourFile.txt' to 'LOGGER.CSV' .
datetick will not solve your problem by itself. Your problem has a couple of pieces:
- reading in the text and throwing away the unneeded parts
- converting the text dates into numeric dates
- breaking the input lines up by date
- plotting each day with its corresponding data on separate figure per day
- labeling the x axis of the plots with the time information
Of these tasks, datetick() only accomplishes the last, the labeling of the axis.
Arun Sharma
2013년 10월 7일
Arun Sharma
2013년 10월 10일
카테고리
도움말 센터 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
