Mean of 2 arrays
Show older comments
Hi, I have 2 arrays in a cell:
imag =
[1130x2120 double] [1130x2120 double]
How can i calculate the mean of both arrays together not of each one?
Answers (2)
One way would be:
mean(mean([imag{1} imag{2}]))
If the dimensions don't match:
mean([imag{1}(:); imag{2}(:)])
Azzi Abdelmalek
on 15 May 2013
cellfun(@(x) mean(x(:)),imag)
Categories
Find more on Images in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!