Three dimensional plot using 4 variables

21 次查看(过去 30 天)
I have 4 variables Latitude,longitude,depth of maximum salinity and maximum salinity, I would like to create a 3D plot with these variables for a single month. These variables are located in netcdf file and I have extracted them using the netcdf package, I have tried the surface plots but it did not gain any output. The data is in 3Dimension from which I have converted into 2 Dimension by collecting data of the same month.
  2 个评论
MIDHILA VARNA
MIDHILA VARNA 2017-12-23
I need a contour plot of the variation of maximum salinity with the other 3 variables

请先登录,再进行评论。

采纳的回答

ANKUR KUMAR
ANKUR KUMAR 2017-12-25
For the contour plot, you can use
contour(lon,lat,salinity')
If you want the filled contour plot, then you can use
contourf(lon,lat,salinity')
If you want labels on the contour plot, then you can use clabel
  3 个评论
ANKUR KUMAR
ANKUR KUMAR 2017-12-26
编辑:ANKUR KUMAR 2017-12-26
You can use surf
surf(X,Y,Z,'FaceAlpha',0.5,'EdgeColor','none';)
X and Y should be the meshgrid of latitude and longitude
And in the same fashion, you can write contour3, but you will not get filled colors in contour3 (I think).

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Contour Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by