How can I create the attached 3D figure with more smooth curves?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Moein
el 17 de En. de 2016
Comentada: Moein
el 17 de En. de 2016
Hi friends
I have plotted the attached Fig. with contourf command but its black cureves are not so smooth (As it can be seen on figure).
What command or property i should use to plot the figure with more smooth curves?
If you know please answer to my question as simple as you can.
Thanks a lot
0 comentarios
Respuesta aceptada
Star Strider
el 17 de En. de 2016
It looks smooth and continuous to me. If you want to interpolate it to a finer mesh, use the interp2 function. See the ‘Examples’ section for an illustration on how to do exactly that.
2 comentarios
Star Strider
el 17 de En. de 2016
I would use the interp2 function, and interpolate it to a finer mesh, as I mentioned previously.
If it represents a calculation, you can begin with a smoother mesh. I believe you already know about meshgrid, so creating your original vectors with the linspace function with a finer spacing is another option.
If you want to turn off the mesh lines (so that it looks more like the MATLAB logo), you can set 'LineStyle','none'. See the documentation for Chart Surface Properties for details on how to set that and other properties. You may have to experiment with them to get the result you want.
Más respuestas (1)
Jan
el 17 de En. de 2016
If you want to create the image with a higher resolution ... create it with a higher resolution. How did you save the image file? Did you consider to export it as vector graphics in a EPS or PDF file?
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!