Mercurial > repos > public > sbplib
view stuffStruct.m @ 1277:dc0ef82e3ec7 feature/poroelastic
Add better getBoundary method in grid/Staggered
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Sun, 07 Jun 2020 11:26:40 -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