Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
Squish(x) will remove all singleton dimensions in x, including conversion of row vectors to column vectors.
Since singleton dimensions can confuse many operations, this function removes absolutely ALL singleton dimensions. SQUEEZE though similar, does not operate on 2D arrays which include row vectors. Thus the expected result may not always occur with SQUEEZE.
Note: This same operation can be performed with shiftdim(squeeze(x)), but squish has been timed to be faster.
For example compare the results of the following for any positive or negative n:
size(squeeze(shiftdim([1:3]',n)))
size(squish(shiftdim([1:3]',n)))
Citar como
Mirko Hrovat (2026). Squish (https://la.mathworks.com/matlabcentral/fileexchange/11945-squish), MATLAB Central File Exchange. Recuperado .
Información general
- Versión 1.1.0.0 (1,53 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
