Improving resolution for a surf plot in MATLAB
Afficher commentaires plus anciens
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 commentaire
Todd Flanagan
le 21 Jan 2011
Hi, I moved your answer to a comment on Doug's answer. That's a good place for that sort of back and forth.
Réponses (2)
Sean de Wolski
le 21 Jan 2011
Interpolate to refine your mesh.
doc interp3
1 commentaire
Walter Roberson
le 21 Jan 2011
Or griddata(). Or the Matlab File Exchange contribution gridfit()
Doug Hull
le 20 Jan 2011
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 commentaires
Todd Flanagan
le 21 Jan 2011
Raygereio says, "Thanks. That is a step in the right direction, but not quite what I was hoping for.
With my 9x9 dataset, this results is somewhat ugly looking jagged edges. Is there any way to produce a more smoother looking circle?"
Doug Hull
le 21 Jan 2011
There is only so much you can do with that coarse of data. Can you sample more data?
Hussain
le 1 Sep 2011
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.
Catégories
En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!