Plotting a graph with dots instead a line

33 ビュー (過去 30 日間)
Marylyn Sammut
Marylyn Sammut 2022 年 1 月 14 日
コメント済み: Image Analyst 2022 年 1 月 14 日
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);
plot(x, y, '-ok')
title('Circles and Lines')
plot(x, y, 'ok', 'MarkerFaceColor','k')
title('Filled Circles')
plot(x, y, '.k')
  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)



Find more on Signal Generation and Preprocessing in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by