Mercurial > hg > ishara
view general/arrutils/sizes.m @ 29:61921dceded1
More documentation on type system.
| author | samer |
|---|---|
| date | Sat, 19 Jan 2013 17:56:21 +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
