How can I plot a surface (plate) from X,Y,Z data that looks like this:

2 views (last 30 days)
x1 x2 x3 x4 x5...x(n)
y1 z1 z2 z3 z4 z5...z(n)
y2 z6 z7 z8 z9 z10..z(n)
y3 ... ... ... ...
y4 ... .. ... ... ..
y5 ... ... ... ... ...
y(m) ... ... ... .. etc

Answers (1)

Star Strider
Star Strider on 23 Nov 2016
The ‘X’ and ‘Y’ matrices (and you will need to define them as matrices) you can create with the meshgrid function. Then use surf or mesh (and their friends surfc and meshc) or contour and its friends to create the sort of 3D plot you want.

Community Treasure Hunt

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

Start Hunting!