singleStruct(s)

Concatenates structure with multiple dimension into a single dimension struct.

You are now following this Submission

This function converts a struct with multiple dimensions to a single dimension. For example struct s(1:n).field1 s(1:n).field2 etc will become s(1).field1 and s(1).field2.

Cite As

Ben Oeveren (2026). singleStruct(s) (https://in.mathworks.com/matlabcentral/fileexchange/54899-singlestruct-s), 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.0.0.0