Mercurial > repos > public > sbplib
view stuffStruct.m @ 1154:3108963cc42c feature/rv
Improve efficiency of diffOps in Burgers2d, the artificial diffusion operator in rv.constructDiffOps and the RungekuttaExteriorRv time-steppers
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Wed, 06 Mar 2019 09:45:52 +0100 |
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