set_taxis

Function blok_select

  Select Dia blocks with specified parameter-value pairs.
  
  

CALL:

   blok = blok_select(blok, varargin)
  
  

INPUT:

   blok: structarray with dia blokken
   varargin: parameter-value pairs, e.g. 'sRkstyp', 'TE'
  
  

OUTPUT:

   blok: selected blokken
   I: index of selected blokken
  
  

EXAMPLE:

   blok = repmat(emptyblok,2,1);
   blok(1).W3H.sParcod = 'Hm0';
   blok(2).W3H.sParcod = 'WATHTE';
   [blok, I] = blok_select(blok, 'sParcod', 'WATHTE');
   find(I)
ans =
     2