File Exchange

image thumbnail


version (738 Bytes) by Matthew Eicholtz
Convert variables to scalar structure.


Updated 27 May 2016

View Version History

View License

VARS2STRUCT Convert variables to scalar structure.
S = VARS2STRUCT packs each variable in the caller worksapce into an
output structure.

S = VARS2STRUCT(A,B,C,___) packs the input variables into an output
structure, such that fieldnames correspond to input variable names.

See also STRUCT2VARS <>.

Cite As

Matthew Eicholtz (2021). vars2struct (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!