MATLAB: Histogram of cell array

cell arrayhistogram

I have a 4-D cell containing a lot of values (from simulation). I wish to plot a histogram representing all those values. How do I do so?

Best Answer

% Ain - 4-D cell array
hist(cell2mat(cellfun(@(x)x(:),Ain(:),'un',0)))