Improving resolution for a surf plot in MATLAB

16 次查看(过去 30 天)
I am using the SURF command to represent some data. I want to plot the surface of a disc in a 3d chart.
The only problem is that my data is in a 9x9 format, this naturally results in a square looking surface. I’d like for the resulting surface to look like a circle.
Is there way to “cut off” the edges somehow?
  1 个评论
Todd Flanagan
Todd Flanagan 2011-1-21
Hi, I moved your answer to a comment on Doug's answer. That's a good place for that sort of back and forth.

请先登录,再进行评论。

回答(2 个)

Sean de Wolski
Sean de Wolski 2011-1-21
Interpolate to refine your mesh.
doc interp3

Doug Hull
Doug Hull 2011-1-20
NaN does not get shown in a surf plot.
a = magic(10)
a([1,2,11,90,99,100]) = NaN
surf(a)
view(2)
  3 个评论
Doug Hull
Doug Hull 2011-1-21
There is only so much you can do with that coarse of data. Can you sample more data?
Hussain
Hussain 2011-9-1
Is it possible then to implement a smooth curve at the rough edges? I ask in a general sense when larger data sets are in question.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by