Mercurial > hg > mauch-mirex-2010
view _FullBNT/KPMtools/myreshape.m @ 9:4ea6619cb3f5 tip
removed log files
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 15:55:11 +0100 |
parents | b5b38998ef3b |
children |
line wrap: on
line source
function T = myreshape(T, sizes) % MYRESHAPE Like the built-in reshape, except myreshape(T,n) == reshape(T,[n 1]) % T = myreshape(T, sizes) if length(sizes)==0 return; elseif length(sizes)==1 T = reshape(T, [sizes 1]); else T = reshape(T, sizes(:)'); end