Increasing Edge Lines in a Surface Plot
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Abdi Hassan
el 27 de Mayo de 2022
Comentada: Abdi Hassan
el 28 de Mayo de 2022
As of now, I am using three vectors with the fit function to produce a surface plot, and example code would be here:
plot(fit([x,u],z,'poly15','normalize','on'))
My problem is I would like to increase the number of edge lines on the surface plot. As of now, it is 50x50 for the x and y axis, but I would like to make it 100x100 instead.
Thank you for your assistance
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1013555/image.png)
0 comentarios
Respuesta aceptada
Chris
el 28 de Mayo de 2022
sf = fit([x,u],z,'poly15','normalize','on');
xpts = linspace(min(x),max(x),100);
upts = linspace(min(u),max(u),100);
[xx, uu] = meshgrid(xpts,upts);
surf(xx, uu, sf(xx,uu))
Más respuestas (0)
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!