Mercurial > repos > public > sbplib
view stuffStruct.m @ 1345:14f44e81e1e3 feature/poroelastic
Add scheme for Elastic2dVariable, not fully compatible.
author | Martin Almquist <martin.almquist@it.uu.se> |
---|---|
date | Tue, 30 Apr 2024 13:33:39 +0200 |
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