Mercurial > repos > public > sbplib
view default_struct.m @ 573:efe2dbf9796e feature/utux2D
Remove data input from boundary condition function
author | Martin Almquist <martin.almquist@it.uu.se> |
---|---|
date | Sun, 03 Sep 2017 21:27:09 +0200 |
parents | 46256fffa329 |
children |
line wrap: on
line source
function default_struct(s, val) if evalin('caller',sprintf('~exist(''%s'',''var'')',s)) given = []; else given = evalin('caller', s); end final = copyWithDefault(given, val); assignin('caller', s, final); end