ru24.pro
News in English
Август
2024

Contour plot from x and y data points with corresponding contour level

3 views (last 30 days) Show older comments Chris Nemecek on 31 May 2024 Link Direct link to this question https://ms-www.mathworks.com/matlabcentral/answers/2124486-contour-plot-from-x-and-y-data-points-with-corresponding-contour-level ⋮ Link Direct link to this question https://ms-www.mathworks.com/matlabcentral/answers/2124486-contour-plot-from-x-and-y-data-points-with-corresponding-contour-level Commented: William Rose on 2 Jun 2024 example.mat I have sets of x and y data points that correspond to a specific contour level. For example (x1,y1) and (x2,y2) correspond to a contour level of 0.1 and (x3,y3) and (x4,y4) correspond to a contour level of 0.01. How do I plot these using the contour function?In the attached .mat file, I have a cell array of tables. Each table has x and y data and the corresponding contour level (which is labeled Density). Basically, if you plot the x and y data using plot() it will create the contour, but I want to use contour() to plot to leverage labeling c...