How to plot contour when the function has no relation with the coordinates.?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
obaid-ur-rehman
am 22 Jan. 2018
Bearbeitet: obaid-ur-rehman
am 25 Jan. 2018
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 Kommentare
Akzeptierte Antwort
KSSV
am 22 Jan. 2018
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)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Contour Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!