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>.
引用格式
Matthew Eicholtz (2024). vars2struct (https://www.mathworks.com/matlabcentral/fileexchange/57371-vars2struct), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2016a
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Data Type Conversion 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!