Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

cellmean.m 326 B

123456789101112131415161718192021
  1. function [mu, se]=cellmean(M,varargin)
  2. % [mu, se]=cellmean(M,varargin)
  3. dim=1;
  4. utils.overridedefaults(who,varargin)
  5. mu=nan(1,numel(M));
  6. se=mu;
  7. for fx=1:numel(M)
  8. if numel(M{fx})<2
  9. mu(fx)=nan;
  10. se(fx)=nan;
  11. else
  12. mu(fx)=nanmean(M{fx},dim);
  13. se(fx)=stats.nanstderr(M{fx},dim);
  14. end
  15. end