Alternatives to plot3.
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
The data I'm interested in plotting is: salinity over depth over time.
I've tried the plot3 and scatter3 on the data, but didn't really like the look of it. Is there any other alternatives? I would mainly want a good overview over the data and how it varied in time and also, for it to look nice.
Those mesh and surf plots look really fancy. Didn't really figure out how to make them though.
I used the meshgrid function on time and depth.
[T,D] = meshgrid(t,d,)
`But couldn't figure out how to make the Z (salinity) values match these grids.
The salinity-, depth- and date data are placed in colummns and have same length. To start with though, there's was one time/date measurements linked to multiple depth and salinity measurements, how many of these will vary. Would really appreciat some advice on this.
0 commentaires
Réponse acceptée
Steven Lord
le 9 Avr 2020
If you have scattered data (your depth and time data doesn't form a regular grid) use griddata or scatteredInterpolant to grid your data then call surf or mesh on the gridded data. See this documentation page for several examples of this technique.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots 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!