comparison stuffStruct.m @ 968:a4ad90b37998 feature/poroelastic

Merge with default.
author Martin Almquist <malmquist@stanford.edu>
date Sun, 23 Dec 2018 14:39:31 +0100
parents 7ea4b6de59d9
children
comparison
equal deleted inserted replaced
967:368a2773f78b 968:a4ad90b37998
1 function s = stuffStruct(varargin)
2 s = struct();
3
4 for i = 1:nargin
5 assert(~isempty(inputname(i)), 'All inputs must be variables.');
6 s.(inputname(i)) = varargin{i};
7 end
8 end