mysqueeze.m

Squeeze *only* along the SELECTED dimension (not along all of them)

You are now following this Submission

This function modifies the original "squeeze" in order to force squeezing along a selected dimension exclusively instead that along all singleton dimensions.
[Aout] = mysqueeze(A,squeezedim)

# A :: Array (2D or larger)
# Aout :: Array squeezed along a selected dimension exclusively.
# squeezedim :: Selected dimension to perform the squeeze alone.

Cite As

Ser xyz (2026). mysqueeze.m (https://www.mathworks.com/matlabcentral/fileexchange/47241-mysqueeze-m), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0