Plotting two interrelated variables over time

조회 수: 3 (최근 30일)
Mark L.
Mark L. 2014년 6월 3일
편집: Mark L. 2014년 6월 3일
So I have data for the temperature at different depths over time. We collected data on 8 different days, so we have 8 sets of depths and 8 corresponding sets of temperatures (which can be found in 'D' and 'T' respectively). I ran datenum, datevec, and datestr ('N', 'V' and 'S') to get the time information, but I'm not sure how to plot time versus depth versus temperature.
Do I need to create a 'for' loop of some sort? In the file, I've separated 'D' into eight different, relevant files D1-D8 (ignore all other forms of D). Same goes for 'T' and 'T1-T8'. This may help with creating a loop.
Another idea I had was to make a meshgrid with N and xq, yielding the matrices X and Y
If I've not posted relevant information, please let me know and I will answer to the best of my abilities.
Thank you.
  댓글 수: 1
Star Strider
Star Strider 2014년 6월 3일
So we only need to concern ourselves with ‘DMat’ and ‘TMat’ (both (12x8))? Does that correspond to 8 days, 8 depths and 8 temperatures? What about date-time? Is there anything else? The others are not all the same lengths, so I don’t know what to do with them.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by