view general/arrutils/sizes.m @ 6:0ce3c2070089

Removed duplicate code and fixed doc in timed_action.
author samer
date Mon, 14 Jan 2013 14:33:37 +0000
parents e44f49929e56
children
line wrap: on
line source
function S=sizes(A)
% sizes - return sizes of elements in cell array
%
% sizes :: {I:[N]->[Size(I):[[1,E]]] -> [[N,E]].
%
% The sizes of the N E-dimensional arrays in the input are collected 
% into an N-by-E array. All arrays must have the same number of dimensions
% as returned by size.

S=zeros([length(A) 2]);
for k=1:length(A)
	S(k,:)=size(A{k});
end