setdefv.m
author A.M. Thurnherr <athurnherr@yahoo.com>
Mon, 23 Feb 2015 09:19:46 +0000
changeset 15 3746197831db
parent 0 0a450563f904
permissions -rw-r--r--
IX11beta for CLIVAR P16

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