setdefv.m
author A.M. Thurnherr <athurnherr@yahoo.com>
Wed, 15 Apr 2015 09:55:34 +0000
changeset 16 54126cc9bb4a
parent 0 0a450563f904
permissions -rw-r--r--
IX_11beta set to Diana Cardoso for testing

function d=setdefv(d,n,v)
% function d=setdefv(d,n,v)
% if variable (n) does not exist in field (d) set it to (v)
if existf(d,n)~=1
 eval(['d.',n,'=v;'])
end