makeStruct

版本 1.0.0.0 (560 字节) 作者: Matthew Kelly
Creates a struct from the variables that are passed to the function.
101.0 次下载
更新时间 2015/12/13

查看许可证

% StructOutput = makeStruct(varargin)
%
% A struct is created with the property that each field corresponds to one
% of the arguments passed to this function.
%
% Example:
%
% R = makeStruct(a,b,c,d,e);
%
% R.a == a;
% R.b == b;
% R.c == c;
% R.d == d;
% R.e == e;
%
% Notes:
%
% An arbitrary number of inputs are allowed, but their names should be
% unique.
%

引用格式

Matthew Kelly (2024). makeStruct (https://www.mathworks.com/matlabcentral/fileexchange/54490-makestruct), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Structures 的更多信息
致谢

启发作品: Particle Swarm Optimization

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0