Mercurial > repos > public > sbplib
view default_struct.m @ 697:8434063ed162 feature/optim
1 objective optimization finished
author | Ylva Rydin <ylva.rydin@telia.com> |
---|---|
date | Fri, 06 Oct 2017 13:51:21 +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