Mean of 2 arrays

17 visualizzazioni (ultimi 30 giorni)
alex
alex il 15 Mag 2013
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?

Risposte (2)

John Doe
John Doe il 15 Mag 2013
Modificato: John Doe il 15 Mag 2013
One way would be:
mean(mean([imag{1} imag{2}]))
If the dimensions don't match:
mean([imag{1}(:); imag{2}(:)])

Azzi Abdelmalek
Azzi Abdelmalek il 15 Mag 2013
cellfun(@(x) mean(x(:)),imag)

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by