Mercurial > repos > public > sbplib
view stuffStruct.m @ 1261:a3f2c1781612 feature/poroelastic
Fix bug with incorrect grids returned by D1StaggeredUpwind
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Wed, 29 Apr 2020 21:02:05 -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