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 <http://www.mathworks.com/matlabcentral/fileexchange/57370-struct2vars>.
Citar como
Matthew Eicholtz (2026). vars2struct (https://la.mathworks.com/matlabcentral/fileexchange/57371-vars2struct), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2016a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Data Type Conversion en Help Center y MATLAB Answers.
Etiquetas
Agradecimientos
Inspirado por: Pack & Unpack variables to & from structures with enhanced functionality
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
