フィルターのクリア

How to plot histogram from two vectors

4 ビュー (過去 30 日間)
Martin Park
Martin Park 2013 年 10 月 9 日
Can someone help me how can I plot a histogram when I have two vectors where one vector is the x values say x=[1 2 3 4 5] and y is the count of each x y=[5 3 2 6 1]

採用された回答

Wayne King
Wayne King 2013 年 10 月 9 日
You want to use bar()
x = 1:5;
y = [5 3 2 6 1];
bar(x,y)
  1 件のコメント
Daniela Rodríguez Castro
Daniela Rodríguez Castro 2020 年 2 月 19 日
how can I do the same but with the histogram function?

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by