Mercurial > repos > public > sbplib
view default_arg.m @ 572:4a73b2aab91f feature/utux2D
Edit scheme.Utux: Add interface function. Compatible with new grids. Works with Utux_1D_interface.
author | Martin Almquist <martin.almquist@it.uu.se> |
---|---|
date | Thu, 31 Aug 2017 14:57:34 +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