Plotting a point in Matlab
조회 수: 79 (최근 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!