% StructOutput = makeStruct(varargin)
% A struct is created with the property that each field corresponds to one
% of the arguments passed to this function.
% R = makeStruct(a,b,c,d,e);
% R.a == a;
% R.b == b;
% R.c == c;
% R.d == d;
% R.e == e;
% An arbitrary number of inputs are allowed, but their names should be
Matthew Kelly (2019). makeStruct (https://www.mathworks.com/matlabcentral/fileexchange/54490-makestruct), MATLAB Central File Exchange. Retrieved .
Inspired: Particle Swarm Optimization