www.pudn.com > minlp.zip > csv_lookup.m, change:2012-03-17,size:352b


% Retrieve CSV element 
function result = csv_lookup(name,csv) 
   % Initialize value 
   result = 0; 
   % Size of CSV data 
   [rows,cols] = size(csv); 
   % Find matching name column in csv data 
   match = strcmpi(deblank(name),csv(1,:)); 
   % Retrieve value 
   for i = 1:cols, 
      if (match(i)), 
         result = i; 
      end 
   end 

2018无需申请注册送58体验金