singleStruct(s)
Version 1.0.0.0 (267 Bytes) by
Ben Oeveren
Concatenates structure with multiple dimension into a single dimension struct.
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://uk.mathworks.com/matlabcentral/fileexchange/54899-singlestruct-s), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2015b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Structures in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
