Partition an input vector into smaller series of subvectors of consecutive elements
Updated 19 Jul 2018

View License

It says all in the summary. Nothing fancy just a convenient tool for spitting vectors.

Cite As

Bruno Luong (2024). SplitVec (https://www.mathworks.com/matlabcentral/fileexchange/24255-splitvec), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Linear Algebra 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

Output specific columns on split-array

extend 'type' with split column numbers
Update tiltle and MATLAB version

New builtin outputs: blockID and subsetorder

fix the bug when 'loc' is required and when working down the columns of matrix

correct bug for empty array, group function
Add output types: 'firstval' 'lastval'

Correct minor bug

correct bug when function handle is passed in second input

multiple column grouping capability