Converts a structure into a table using struct2table, except that if the input is not a structure (e.g. it is already a table), s2t does not return an error but simply returns the input unchanged as the output.
Cite As
Matthew Humphreys (2026). s2t(st) (https://www.mathworks.com/matlabcentral/fileexchange/51960-s2t-st), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2013b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Language Fundamentals > Data Types > Tables >
- MATLAB > Language Fundamentals > Data Types > Structures >
Find more on Tables in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
