mysqueeze.m

Version 1.0.0.0 (1.11 KB) by Ser xyz
Squeeze *only* along the SELECTED dimension (not along all of them)
136 Downloads
Updated 15 Jul 2014

View License

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 (2024). mysqueeze.m (https://www.mathworks.com/matlabcentral/fileexchange/47241-mysqueeze-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Matrices and Arrays in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0