attach

Assign fields of structure to variables in the current workspace.
550 Downloads
Updated 3 Mar 2012

View License

This function is similar to the attach function in R. Each field of the passed-in structure is created as a variable of the same name in the current workspace. The value of the variables are set to the contents of the corresponding fields.

Cite As

Jeremy Manning (2024). attach (https://www.mathworks.com/matlabcentral/fileexchange/35436-attach), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Structures in Help Center and MATLAB Answers
Acknowledgements

Inspired: Add to mat

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0