Fill up peak by colour
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Namira
el 29 de Jul. de 2018
Comentada: madhan ravi
el 29 de Jul. de 2018
Hi,
I have a figure with multiple peaks.

I want to fill up every peak by colors. I don't know the command to fill up by color. I found stem command in Matlab, but it doesn't fill with color. Any suggestion from anyone?
Thanks.
2 comentarios
Respuesta aceptada
madhan ravi
el 29 de Jul. de 2018
Editada: madhan ravi
el 29 de Jul. de 2018
Hi, try this EXAMPLE:
[PKS,LOCS]=findpeaks(y,TIME)
% TIME - x-axis
%y - y-axis
plot(LOCS,PKS,'ok',...
'MarkerEdgeColor','k',...
'MarkerFaceColor','c',...
'MarkerSize',10)
hold on
NOTE: YOU CAN ADJUST MARKERSIZE ACCORDING TO YOUR WISH.

REMARK: THE CYAN COLORED DOT IS THE PEAK IN THE ABOVE PICTURE.
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Preprocessing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!