Select Dia blocks with specified parameter-value pairs.
blok = blok_select(blok, varargin)
blok: structarray with dia blokken varargin: parameter-value pairs, e.g. 'sRkstyp', 'TE'
blok: selected blokken I: index of selected blokken
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