MATLAB Answers

0

cell array mean clculation

Asked by moaad abd allatif on 13 Jun 2019
Latest activity Answered by Jason Firth on 13 Jun 2019
how to calculate the mean for only one dim in cell array :
for example :
this is the cell array sizes :
ps = cell(2,80,2);
i want to calculate the mean according the third dim..

  0 Comments

Sign in to comment.

1 Answer

Answer by Jason Firth on 13 Jun 2019

Can you convert to a matrix?
mean(cell2mat(ps),3)

  0 Comments

Sign in to comment.