Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Acell = {A1,A2,A3,A4,....};
  2. maxL = max(cellfun(@length, Acell))
  3. M = zeros(maxL,1);
  4. for n=1:maxL
  5. M(n) = mean(cellfun(@(V) V(n), Acell((cellfun(@length, Acell))>=n)))
  6. end
  7.  
  8. Acell = {A1,A2,A3,A4,....};
  9.  
  10. maxL = max(cellfun(@length, Acell))
  11.  
  12. cellfun(@(V) V(n), Acell)
  13.  
  14. Acell((cellfun(@length, Acell))>=n)
  15.  
  16. cellfun(@(V) V(n), Acell((cellfun(@length, Acell))>=n))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement