view general/cellutils/@cell/gather.m @ 38:9d24b616bb06

Added function algebra.
author samer
date Tue, 29 Jan 2013 15:59:01 +0000
parents e44f49929e56
children
line wrap: on
line source
function Y=gather(dim,X,varargin)
% gather - Gather for cell arrays
%
% gather :: 
%    D:natural ~'dimenion along which to gather',
%    cells(A)  ~'1 D cell array of things'
% -> [Size->A].

if isempty(X), Y=[]; else Y=cellcat(dim,X); end