Bar Plot Matlab, Plot a bar … This MATLAB function creates a bar graph with one bar for each element in y.