Plotting two interrelated variables over time

2 views (last 30 days)
Mark L.
Mark L. on 3 Jun 2014
Edited: Mark L. on 3 Jun 2014
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 Comment
Star Strider
Star Strider on 3 Jun 2014
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.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!