Plotting two interrelated variables over time
3 次查看(过去 30 天)
显示 更早的评论
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
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 Center 和 File Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!