How do I plot a contour line around a series of data points?

2 次查看(过去 30 天)
I have a series of data points indicating the performance for a range of different generic material types, and I want to plot a contour line around those points for illustrating the range of performance for a given material type, as in the image below.
Is plotting a graph/chart like this possible in Matlab? The data is stored as a series of numeric matrices.

回答(2 个)

Walter Roberson
Walter Roberson 2016-1-28
You need a scattered interpolant such as http://www.mathworks.com/help/matlab/ref/scatteredinterpolant-class.html or http://www.mathworks.com/help/matlab/ref/triscatteredinterp.html. Then you can use contourf(). However, in R2014b or later you might have difficulty using transparency if you use contourf()

David MERCIER
David MERCIER 2018-10-18
编辑:David MERCIER 2018-10-18
You can have a look at this kind of plot: Cluster Using Gaussian Mixture Models
  1 个评论
David MERCIER
David MERCIER 2018-10-19
A possible function to use is this one: 54568-clustering-with-gaussian-mixture-models-gmms. Then, contourf or isosurfaces... is a simple way to encapsulate or surround cloud/cluster of points with a rounded shape.

请先登录,再进行评论。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by