MATLAB: How to obtain histogramof each individual matrix in cell array?

arraycell array

I have a 8 by 8 cell and each cell consist of a matrix with 1 row and 49 columns.how do i compute histogram for each cell using a for loop?
I would like to plot for each matrix in the cell array and meaning i will obtain 64 figures of histograms as i have 64 cells. How do I access each matrix to plot the histogram?

Best Answer

In its simplest form:
cellfun(@histogram, yourcellarray);
If you want to specify the number of bins or edges
nbins = 5;
cellfun(@(c) histogram(c, nbins), yourcellarray);