If you're looking for inspiration, check out the link below with plenty of examples and source code:
Or check out the code below as a starting point:
% Matrix 't' represents photos
% 1 row = 1 photo
t = randn(5,50)
binNo = 10 % number of bins for the histogram
bins = zeros(size(t,1),binNo) % preallocation
% 'FOR' loop to get the histogram values for each photo
for i=1:size(t,1)
h = histogram(t(i,:),...
binNo)
bins(i,:) = h.Values
end
% plot histogram bins as 3D bar-chart
b = bar3(bins)