Fill up peak by colour

1 回表示 (過去 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 Center および File ExchangeDescriptive Statistics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by