I'm trying to make a contour plot using discrite x,y, and z values and the examples in all the help files assume z is just a function, not the z value associated with my x and t value. The x and y values are scatered,How can I do this? Thanks, Rick

I'm trying to make a contour plot using discrete x,y, and z values and the examples in all the help files assume z is just a function, not the z value associated with my x and y value. The x and y values are scatered,How can I do this? Thanks, Rick

 Akzeptierte Antwort

Jon
Jon am 23 Jul. 2015
Bearbeitet: Jon am 23 Jul. 2015
You should search before posting. The first hit of a Google search suggests
tri = delaunay(xx,yy); %x,y,z column vectors
trisurf(tri,xx,yy,zz);
Surf requires that Z be a matrix. You must build that matrix from your scatter data using something like delaunay.

Weitere Antworten (0)

Kategorien

Mehr zu Contour Plots finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 23 Jul. 2015

Bearbeitet:

Jon
am 23 Jul. 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by