How to plot contour when the function has no relation with the coordinates.?
1 次查看(过去 30 天)
显示 更早的评论
I have 3 matrices. x(n,1), y(n,1) and z(n,1). I want to plot the contour of 'z' in the 'x-y' coordinate. Can anyone help? I can plot it in Origin easily but I need to plot in Matlab.
0 个评论
采纳的回答
KSSV
2018-1-22
N = 50 ;
x = rand(N,1) ;
y = rand(N,1) ;
z = rand(N,1) ;
dt = delaunayTriangulation(x,y) ;
tri = dt.ConnectivityList ;
coor = dt.Points ;
trisurf(tri,x,y,z,'EdgeColor','none');
view(2)
更多回答(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!