Mercurial > repos > public > sbplib
view stuffStruct.m @ 1040:85a311344978 feature/rv
Created a new branch for gathering rv-specific features, since the specific branches are getting nested anyways.
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 18 Jan 2019 09:10:45 +0100 |
parents | 7ea4b6de59d9 |
children |
line wrap: on
line source
function s = stuffStruct(varargin) s = struct(); for i = 1:nargin assert(~isempty(inputname(i)), 'All inputs must be variables.'); s.(inputname(i)) = varargin{i}; end end