subarray

Extracts a subarray from an array. Useful for function outputs.

Download
Download

You are now following this Submission

Cite As

Peter Mao (2026). subarray (https://uk.mathworks.com/matlabcentral/fileexchange/24457-subarray), 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.1.0

prev version wasn't handling 1xn matrices in the expected way (it wasn't skipping the singeton dimensions). usage in functions seems to be well behaved now, provided one uses quotes around :'s and "end"'s

Download
1.0.0

Download