view general/arrutils/sizes.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
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