source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/mysqueeze.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 244 bytes
Line 
1function x = mysqueeze(x)
2% Like squeeze(x), but row vectors become columns.
3
4% Written by Thomas P Minka
5
6s = size(x);
7dim = find(s==1);
8if ~isempty(dim)
9  s(dim) = [];
10  % [1 1] handles special cases
11  x = reshape(x,[s 1 1]);
12end
Note: See TracBrowser for help on using the repository browser.