www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/RemoveSingletonDimensionFromArrayExample.m
%% Remove Singleton Dimension from Array % Create a 2-by-1-by-3 array and remove the singleton column dimension to form a 2-by-3 matrix. % Copyright 2015 The MathWorks, Inc. y = rand(2,1,3) z = squeeze(y)