フィルターのクリア

How can i put an edge color on a specific bar?

39 ビュー (過去 30 日間)
yashvin
yashvin 2015 年 8 月 5 日
コメント済み: yashvin 2015 年 8 月 6 日
Hi
y = [2 4 3];
b = bar(y);
b(1,2).LineWidth = 2;
b(1,2).EdgeColor = 'red';
I want to change only the second bar edge to red. How can i do it?

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 8 月 5 日
y = [2 4 3];
b = bar(y);
hold on
h=bar(y(1:2))
set(h,'EdgeColor', 'red','LineWidth', 2);
  1 件のコメント
yashvin
yashvin 2015 年 8 月 6 日
Thanks :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnimation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by