Improving resolution for a surf plot in MATLAB

조회 수: 15 (최근 30일)
Raygereio
Raygereio 2011년 1월 20일
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
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 1월 21일
Or griddata(). Or the Matlab File Exchange contribution gridfit()

댓글을 달려면 로그인하십시오.


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