2D 3D concentration filled contour at different elevation
显示 更早的评论
I have 4 vectors, x,y,z and conc corresponding to a list of un-ordered coordinates(x,y,z), and a corresponding concentration vector,con, for each point. I'd like to create filled concentration profile (contour) at different depth. so I tried contourslice, I also tried to create new matrices for different z values and create individual 2D contours on a structured grid but in all attempts I received error saying that the con should be at least 2x2(the contourf and also contourslice require 'con' to be a two-dimensional matrix, not a one-dimensional vector). my datafile is huge so I can not do it manually and I have been looking for this for the last week and I couldnt find any solution. I dont want to use scatter3. Any solution would be greatly appreciated.
回答(1 个)
Walter Roberson
2018-1-6
0 个投票
griddata() and then use slice() or contourslice()
类别
在 帮助中心 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!