zorgkang - 2010-05-28

I found the place: in dim.m, lines 31-34:
dat = [double(dat(:)') 1 1];
lim = max([2 find(dat~=1)]);
dat = dat(1:lim);
obj.dim = dat;
Before that point, dat is the correct 'dim', with length = dim(0) from the header. So I don't see the reason to dismiss a dimension just because it has 1 element... I think the above should simply be:
obj.dim = double(dat);

I don't know if this is the same in the c library.