spm_zeros.m 496 B

1234567891011121314
  1. function [X] = spm_zeros(X)
  2. % fills a cell or structure array with zeros
  3. % FORMAT [X] = spm_zeros(X)
  4. % X - numeric, cell or stucture array[s]
  5. %__________________________________________________________________________
  6. % Copyright (C) 2005-2013 Wellcome Trust Centre for Neuroimaging
  7. % Karl Friston
  8. % $Id: spm_zeros.m 6233 2014-10-12 09:43:50Z karl $
  9. % create zeros structure
  10. %--------------------------------------------------------------------------
  11. X = spm_unvec(zeros(spm_length(X),1),X);