squeezeall.m

来自「阵列信号处理的工具箱」· M 代码 · 共 27 行

M
27
字号
function b = squeezeall(a)%SQUEEZEALL Remove all singleton dimensions.%   B = SQUEEZE(A) returns an array B with the same elements as%   A but with all the singleton dimensions removed.  A singleton%   is a dimension such that size(A,dim)==1. %   The difference to the function SQUEEZE is that SQUEEZEALL also turns%   row vectors into cloumn vectors, which is not the case for SQUEEZE.%%   For example,%       squeeze(rand(2,1,3))%   is 2-by-3.%%   See also SQUEEZE, SHIFTDIM, PERMUTE, IPERMUTE%   *  DBT, A Matlab Toolbox for Radar Signal Processing  *% (c) FOA 1994-2000. See the file dbtright.m for copyright notice.%%  Start        : 9910xx Svante Bj鰎klund (svabj).%  Latest change: $Date: 2000/10/16 15:40:19 $ $Author: svabj $.%  $Revision: 1.2 $% *****************************************************************************b = squeeze(a);if ((ndims(b) == 2) & (size(b,1) == 1))  b = b.';end%if

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?