concatStruct

Concatenate two structures as vectors or arrays.

Download
Download

You are now following this Submission

Cite As

Gennady Erlikhman (2026). concatStruct (https://www.mathworks.com/matlabcentral/fileexchange/28193-concatstruct), 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.10.0

Fixed some bugs.
Now works for structure arrays as well as vector structures.
Can specify dimension along which to concatenate the structures or the fields.

Download
1.9.0

corrected description

Download
1.7.0

Now works for m x n structures, not just vector structures.

Download
1.3.0

No longer needs to take in vector structures. Can take in m x n structures.

Download
1.1.0

added H1 line, error check for mismatching field dimensions, error check if field and substructure share same name, allows for concatenation of nested structures, added example

Download
1.0.0

Download