I have a cell array A, of dimension say 1x8
and each cell consist of 10x13xN
matirx(numerical values).
Example:
10x13x91 double 10x13x91 double 10x13x91 double 10x13x91 double 10x13x91 double 10x13x91 double 10x13x91 double 10x13x91 double
now i want to take mean and variance for 10x13(130 Values) across N. i.e, (1,1,1)(1,1,2)...(1,1,N). first 2 values indicates the points and the third one refers to the position.
When i try to apply mean over a 1x8 Cell array of the same dimension and cell values as mentioned above using the cellfun
function, i get the following error.
A = 1x8 cell
B = cellfun(@mean,A)
Error using cellfun
Non-scalar in Uniform output, at index 1, output 1.
Set 'UniformOutput' to false.
i need the results like only 260 values(mean+variance) across 8 elements of 1x8 Cellarray,by the way i can ignore the N values, since i take the mean and variance over N. How can i do this? Thanks.