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.

Respuestas (1)

Walter Roberson
Walter Roberson el 6 de En. de 2018
griddata() and then use slice() or contourslice()

Categorías

Más información sobre Contour Plots en Centro de ayuda y File Exchange.

Preguntada:

el 6 de En. de 2018

Respondida:

el 6 de En. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by