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
Walter Roberson 2018 年 1 月 6 日

0 投票

griddata() and then use slice() or contourslice()

カテゴリ

ヘルプ センター および File ExchangeContour Plots についてさらに検索

質問済み:

2018 年 1 月 6 日

回答済み:

2018 年 1 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by