makeStruct

Creates a struct from the variables that are passed to the function.

Sie verfolgen jetzt diese Einreichung

% 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.
%

Zitieren als

Matthew Kelly (2026). makeStruct (https://de.mathworks.com/matlabcentral/fileexchange/54490-makestruct), MATLAB Central File Exchange. Abgerufen .

Quellenangaben

Inspiriert: Particle Swarm Optimization

Allgemeine Informationen

Kompatibilität der MATLAB-Version

  • Kompatibel mit allen Versionen

Plattform-Kompatibilität

  • Windows
  • macOS
  • Linux
Version Veröffentlicht Versionshinweise Action
1.0.0.0