existf.m
changeset 0 40938dd7a1f1
equal deleted inserted replaced
-1:000000000000 0:40938dd7a1f1
       
     1 function [yn,pos]=existf(d,n)
       
     2 % function yn=existf(d,n)
       
     3 % checks for existance of variable (n) in data field (d)
       
     4 an=fieldnames(d);
       
     5 pos=strcmp(an,n);
       
     6 yn=sum(pos);
       
     7 
       
     8