Contour Plot for Scattered Data
TRICONTOUR(TRI,X,Y,Z,N) draws scalar N contour lines treating the values in Z as heights above a plane. TRI,X,Y,and Z define a triangulation where the triangles are defined by the M-by-3 face matrix TRI, such as that returned by DELAUNAY. Each row of TRI contains indices into the X,Y, and Z vertex vectors to define a single triangular face. Contours are computed directly from the triangulation rather than interpolating back to a cartesian grid using GRIDDATA.
TRICONTOUR(TRI,X,Y,Z,V) draws length(V) contour lines at the values specified in vector V.
TRICONTOUR(TRI,X,Y,Z,[v v]) draws a single contour line at the level v.
[C,H] = TRICONTOUR(...) returns contour matrix C as described in CONTOURC and a vector of handles H to the created patch objects.
H can be used to set patch properties.
CLABEL(C) or CLABEL(C,H) labels the contour levels.
Citation pour cette source
Duane Hanselman (2024). Contour Plot for Scattered Data (https://www.mathworks.com/matlabcentral/fileexchange/38858-contour-plot-for-scattered-data), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Graphics > 2-D and 3-D Plots > Contour Plots >
- MATLAB > Graphics > 2-D and 3-D Plots > Data Distribution Plots > Scatter Plots >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0.0 |