Fill up peak by colour

조회 수: 4 (최근 30일)
Namira
Namira 2018년 7월 29일
댓글: madhan ravi 2018년 7월 29일
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
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 7월 29일
Do you have to fill only peaks? There are multiples peaks.
Namira
Namira 2018년 7월 29일
I want to fill all the peaks.

댓글을 달려면 로그인하십시오.

채택된 답변

madhan ravi
madhan ravi 2018년 7월 29일
편집: madhan ravi 2018년 7월 29일
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
Namira
Namira 2018년 7월 29일
Thanks. But I want to fill the peak, not peak point like attached image.
madhan ravi
madhan ravi 2018년 7월 29일
Try this area syntax.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Preprocessing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by