Plotting a graph with dots instead a line
조회 수: 19 (최근 30일)
이전 댓글 표시
I need to plot a graph with dots with the following code :
plot(data, ‘.’),(signalNoise,signalTimeRec);xlabel('Original Signal');ylabel('Recovered Signal','Fontsize',11,title('Comparision the orginal signal with the recovered signal')
댓글 수: 0
답변 (1개)
Yusuf Suer Erdem
2022년 1월 14일
x = 1:10;
y = rand(1,10);
subplot(3,1,1)
plot(x, y, '-ok')
title('Circles and Lines')
subplot(3,1,2)
plot(x, y, 'ok', 'MarkerFaceColor','k')
title('Filled Circles')
subplot(3,1,3)
plot(x, y, '.k')
title('Dots')
댓글 수: 1
Image Analyst
2022년 1월 14일
And you can also adjust the size with the 'MarkerSize' option
plot(x, y, 'ok', 'MarkerFaceColor','k', 'MarkerSize', 40)
참고 항목
카테고리
Help Center 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!