I have a cell array VsCell with dimension 1000x1 (or more). Each item in VsCell is a 501x567 matrix. I want to extract elements occupying a position in all the matrices contained in the cell. Basically something like:
VsCell{:}(1,1) - for all the first elements of the arrays in the cell VsCell{:}(2,1) - for all the first row 2 elements of the arrays in the cell.
Subsequently, I intend to take the mean or median of these selection and fill a single [501x567] matrix array, which would represent the mean/median/etc of the VsCell arrays e.g. mean(VsCell{:}(1,1)).
I tried VsCell{:}(1,1) - but it returns "Bad cell reference operation."
Also, is there a way to achieve this with little or no for loops/cellfun? I couldn't really achieve this using examples found online.
Thank you very much for your time, I am glad to clarify further if need be.