singleStruct(s)

Version 1.0.0.0 (267 Bytes) by Ben Oeveren
Concatenates structure with multiple dimension into a single dimension struct.
37 Downloads
Updated 14 Jan 2016

View License

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 Linux
Categories
Find more on Structures in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0