attach

Assign fields of structure to variables in the current workspace.

You are now following this Submission

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 (2026). attach (https://uk.mathworks.com/matlabcentral/fileexchange/35436-attach), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Add to mat

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0