Plotting a point in Matlab

35 次查看(过去 30 天)
Fábio Oliveira
Fábio Oliveira 2021-7-2
Hello everyone. Do you know how to plot only one point in Matlab? If so, how to change its size?
Thank you so much.

回答(2 个)

Star Strider
Star Strider 2021-7-2
One approach —
x = pi;
y = pi;
figure
plot(x, y, 'p')
grid
figure
plot(x, y, 'p', 'MarkerSize',50)
grid
.

Kelly Kearney
Kelly Kearney 2021-7-2
If you just want a single point with an arbitrary size, try plot, and play around with the 'markersize' property. Be sure to specifify a marker (the default marker is none, so a single point won't show up):
plot(1,2,'.', 'markersize', 50)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by