Improving resolution for a surf plot in MATLAB

16 visualizzazioni (ultimi 30 giorni)
Raygereio
Raygereio il 20 Gen 2011
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 Commento
Todd Flanagan
Todd Flanagan il 21 Gen 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.

Accedi per commentare.

Risposte (2)

Sean de Wolski
Sean de Wolski il 21 Gen 2011
Interpolate to refine your mesh.
doc interp3
  1 Commento
Walter Roberson
Walter Roberson il 21 Gen 2011
Or griddata(). Or the Matlab File Exchange contribution gridfit()

Accedi per commentare.


Doug Hull
Doug Hull il 20 Gen 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 Commenti
Doug Hull
Doug Hull il 21 Gen 2011
There is only so much you can do with that coarse of data. Can you sample more data?
Hussain
Hussain il 1 Set 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.

Accedi per commentare.

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by