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

조회 수: 1 (최근 30일)
Konstantinos Dragonas
Konstantinos Dragonas 2016년 5월 28일
답변: Image Analyst 2016년 5월 28일
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.

답변 (1개)

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

카테고리

Help CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by