Plotting a graph with dots instead a line

76 visualizaciones (últimos 30 días)
Marylyn Sammut
Marylyn Sammut el 14 de En. de 2022
Comentada: Image Analyst el 14 de En. de 2022
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')

Respuestas (1)

Yusuf Suer Erdem
Yusuf Suer Erdem el 14 de En. de 2022
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 comentario
Image Analyst
Image Analyst el 14 de En. de 2022
And you can also adjust the size with the 'MarkerSize' option
plot(x, y, 'ok', 'MarkerFaceColor','k', 'MarkerSize', 40)

Iniciar sesión para comentar.

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by