how can I add a point in figure?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Adnan
el 8 de Abr. de 2025
Comentada: Adnan
el 8 de Abr. de 2025
Hi,
I want to add a point to this figure. Can you please tell me how to do that ?
the point that I want to add to my figure is: x=70.00; y= 0.30. Thanks for your time.

0 comentarios
Respuesta aceptada
Star Strider
el 8 de Abr. de 2025
Editada: Star Strider
el 8 de Abr. de 2025
Probably the easiest way —
figure
% surf(...)
% view(0,90)
hold on
plot3(70.00, 0.30, 1, 'sr', MarkerFaceColor='r')
hold off
view(0,90)
Ax = gca;
Ax.YScale='log';
You can also vary the MarkerSize and other properties.
Since you are plotting on a surface, it may be necessary to use the scatteredInterpolant function to put the point exactly on the surface, or just use the maximum value for the surface (apparently 1, according to the colorbar scale), as I did here.
EDIT — Added explanatory detail.
.
Más respuestas (0)
Ver también
Categorías
Más información sobre Labels and Styling 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!

