2D 3D concentration filled contour at different elevation
Show older comments
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.
Answers (1)
Walter Roberson
on 6 Jan 2018
0 votes
griddata() and then use slice() or contourslice()
Categories
Find more on Contour Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!