i have a multiple array cells (result):
there are 20 cells and each cell contains other 20 cells. I would like to create an histogram of each cell data, so in total 400 histograms. I built this code but if I have ii=1 i have L_nod starting from result{1,1}{1,2}. I want that it starts from result{1,1}{1,1} and increase each time.
for ii = 1:length(result) figure(ii) L_nod = result{1,ii}(:,ii+1) L_nodo1 = cell2mat(L_nod); [n,x] = hist(L_nodo1,50); n = n/length(L_nodo1)/diff(x(1:2)); bar(x,n,'hist') pngFileName = sprintf('hist%d.png',ii); fullFileName = fullfile(folder, pngFileName); saveas(gcf,fullFileName);end
maybe is not clear, if anybody has a new code to suggest to me i'm glad :).
Thanks!
Best Answer