Improving resolution for a surf plot in MATLAB
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Todd Flanagan
el 21 de En. de 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.
Respuestas (2)
Sean de Wolski
el 21 de En. de 2011
Interpolate to refine your mesh.
doc interp3
1 comentario
Walter Roberson
el 21 de En. de 2011
Or griddata(). Or the Matlab File Exchange contribution gridfit()
Doug Hull
el 20 de En. de 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)
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!