I have some data that I'd like to plot on a graph in MATLAB. the data is discrete - specifically these are 2 series of data against a single vector. I could easily do it in excel like this:
but I want to do it in matlab. I tried to use the stem function, but the 2 series values are shown on the same bar (and I want them side by side, like the excel does):
In addition, I would like to show on the x bar only the values I'm interested in (in my case: 2,4,8,16,32). How do I do that?


