Hello im suffering some problem while trying to plot my data into bars. i have an array(7000×2)
data=xlsread('data.xlsx');a= sortrows(data);a(a(:,2) == 0, :) = [] ;[U1,~,G1] = uniquetol(a(:,1));S1 = accumarray(G1(:),a(:,2));M1 = [U1,S1];figureplot(M1(:,1),M1(:,2))ylabel('data')xlabel('alpha')
What i want to obtain is the same figure but instead of lines with bars. I tried using bar instead of plot but nothing is showing.
Thank u in advance.
Best Answer