[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: default squeeze as option?
From: |
Przemek Klosowski |
Subject: |
Re: default squeeze as option? |
Date: |
Fri, 15 Dec 2006 15:01:54 -0500 (EST) |
This problem popped up recently in a discussion about plotting. If m =
rand(2,2,2);
then m(1,:,1) and m(:,1,1) are nice vectors squeezed to size 1 2, but
m(1,1,:) is size 1 1 2, and you can't transpose it; as a result, you can plot
the first two slices, but not the third one.
Unfortunately that is how the other leading brand treats
multidimensional slices, so we are probably stuck here. A simple
solution would be to change plot and whetever else to explicitly
squeeze its arguments.