Hi,
I have a 16×16 array in which I would like to plot the distribution of the occurence of each element for each row, but somehow the below code snippet does not give me the correct solution. Please help. Thanks!
length = HW(:,1); /* HW is my 16x16 matrix */for i = 1:size(HW(:,1)) numbers(i) = unique(HW(i,1)); count(i) = hist(length(HW(:,i)),numbers(i));end
Best Answer