Mercurial > repos > public > sbplib
view default_arg.m @ 256:87504db14c6d operator_remake
Bug fix in D2.m, added 12th order.
author | Martin Almquist <martin.almquist@it.uu.se> |
---|---|
date | Wed, 07 Sep 2016 16:41:31 +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