Plotting a graph with dots instead a line

26 views (last 30 days)
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')

Answers (1)

Yusuf Suer Erdem
Yusuf Suer Erdem on 14 Jan 2022
x = 1:10;
y = rand(1,10);
plot(x, y, '-ok')
title('Circles and Lines')
plot(x, y, 'ok', 'MarkerFaceColor','k')
title('Filled Circles')
plot(x, y, '.k')
  1 Comment
Image Analyst
Image Analyst on 14 Jan 2022
And you can also adjust the size with the 'MarkerSize' option
plot(x, y, 'ok', 'MarkerFaceColor','k', 'MarkerSize', 40)

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!