Mercurial > repos > public > sbplib
view default_arg.m @ 460:e0caae9ef6ed feature/grids
Add SBPinTime for linear DAE formulations (BUGS!)
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 19 Jun 2017 16:50:13 +0200 |
parents | 48b6fb693025 |
children |
line wrap: on
line source
function default_arg(s, val) if evalin('caller',sprintf('~exist(''%s'',''var'') || isempty(%s)',s,s)) assignin('caller',s,val) end end