view general/arrutils/sizes.m @ 13:03694e5c8365

Reorganised some high order list functions to correct class-based method dispatch; fixed some docs.
author samer
date Wed, 16 Jan 2013 12:12:34 +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