Plot 2-d contour of 3D dataset
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a dataset with the following collumns: x, y, z, V. Rows are points V(x,y,z).
I wish to plot contours in the XY plane with the V values.
I have done:
[X,Y] = meshgrid(x,y)
how do I lay V data across the meshgrid so I can plot contour(X,Y,V)?
댓글 수: 3
답변 (1개)
KSSV
2022년 8월 17일
How about this?
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1099910/data_16082022.csv') ;
x = T.(1) ;
y = T.(2) ;
z = T.(3) ;
v = T.(4) ;
dt = delaunayTriangulation(x,y,z) ;
patch('faces',dt.ConnectivityList,'vertices',dt.Points,'facevertexcdata',v,'facecolor','interp','edgecolor','none') ;
view(3)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!