I have one dimensional array and i need to calculate it's average.
I tried:
A = mean(mean(PSNRarr,2),2)
but I get an error.
If someone knows how to make it work it will be great!
The easiest way that works for any amount of dimensions (assuming it is a regular matrix):
mean(PSNRarr(:))
However, if you have a cell array with numbers, try:
mean(mean(cell2mat(PSNRarr)))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With