Plotting two interrelated variables over time
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Star Strider
le 3 Juin 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.
Réponses (0)
Voir également
Catégories
En savoir plus sur Shifting and Sorting Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!