Mercurial > repos > public > sbplib
view stuffStruct.m @ 1283:70939ea9a71f feature/poroelastic
Bugfix in Elastic2dVariable
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Tue, 23 Jun 2020 13:31:01 -0700 |
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