MATLAB Answers

plot 2 ( Stems / Histograms ) in the same axis

5 views (last 30 days)
Mohamed Wassim BABA
Mohamed Wassim BABA on 7 Apr 2016
Answered: Kuifeng on 7 Apr 2016
Hello, I have two vectors that quantify a data in the same dates. I want to plot their stems / Histograms in the same axis like the image in the attachement. Thanks.

  0 Comments

Sign in to comment.

Answers (1)

Kuifeng
Kuifeng on 7 Apr 2016
%1 use the 'hist' function to get the vertical axis for two arrays.
%2 use the function 'bar' to plot

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!