Using Cell Arrays to Concatenate Vectors/Matrices Together
Version 1.0.0.0 (4.77 KB) by
Jason Nicholson
Shows how to use cell arrays to concatenate vectors/matrices together.
Often you need to loop over a set of files or vectors and concatenate them together. There are multiple ways to handle this but the cell array seems to be the easiest and most elegant. You don't need to know the total size of the all the vectors before you loop. You don't have to concatenate inside the for loop.
Cite As
Jason Nicholson (2026). Using Cell Arrays to Concatenate Vectors/Matrices Together (https://uk.mathworks.com/matlabcentral/fileexchange/62453-using-cell-arrays-to-concatenate-vectors-matrices-together), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2016b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Matrices and Arrays in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
html/
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | grammar mistake fixed. |
