Plotting a point in Matlab
80 ビュー (過去 30 日間)
古いコメントを表示
Hello everyone. Do you know how to plot only one point in Matlab? If so, how to change its size?
Thank you so much.
0 件のコメント
回答 (2 件)
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
.
0 件のコメント
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)
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!