How do I plot 3-D random data with surf?

1 Ansicht (letzte 30 Tage)
Konstantinos Dragonas
Konstantinos Dragonas am 28 Mai 2016
Beantwortet: Image Analyst am 28 Mai 2016
Hello, I would like to plot the following (x,y,z) points and connect them with a 3-D spline surface. (BTW i used surf despite that I dont understand meshgrid but the result was awfull)
x=rand(10,1)*10; y=rand(10,1)*10; z=rand(10,1)*2; Thank you in advance for yor time.

Antworten (1)

Image Analyst
Image Analyst am 28 Mai 2016
You need to use scatteredInterpolant() to turn your data into a regular grid/image first. See the help for it.

Kategorien

Mehr zu Polar 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!

Translated by