How can I compute the mean of a cell matrix with different size ?
    2 views (last 30 days)
  
       Show older comments
    
Hi everybody. I have a matrix array (2dimensional) and I would like to compute the mean of each coulumn.
R{i,j}=cell array with 186*157 size. i=1:186,j=1:157.
1 Comment
  Jan
      
      
 on 29 Apr 2022
				What is the contents of the cell elements? Do you want to get the mean value of the elements, or between the elements?
Accepted Answer
  Star Strider
      
      
 on 29 Apr 2022
        Try something like this — 
R = {rand(10,8)}
Rmeanc = cellfun(@mean,R, 'Unif',0)
Rmeanv = Rmeanc{:}
.
0 Comments
More Answers (0)
See Also
Categories
				Find more on Loops and Conditional Statements 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!

