Plotting a graph with dots instead a line

22 次查看(过去 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')

回答(1 个)

Yusuf Suer Erdem
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
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 CenterFile Exchange 中查找有关 Legend 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by