Home > brede > brede_exp_select.m

brede_exp_select

PURPOSE ^

brede_exp_select - Select fields or 'exp' structures

SYNOPSIS ^

function O = brede_exp_select(varargin)

DESCRIPTION ^

 brede_exp_select    - Select fields or 'exp' structures

      function O = brede_exp_select(E)

      Input:    E      'Exp' structures

      Property: Select [ {''} | INDEX | field in E ] Determines which
                       fields should be returned. If empty the entire
                       structure will be returned 
                Where  Cell with 3 elements: "column", condition and
                       value. Condition can be 'any(==)' 'findstr',
                       'findstri' 'strcmp', 'strmatch', 'strmatchi'
                       'strmatchx'  
           
      Output:   O      Output, eg, 'exp' structures

      This function works somewhat similar as an SQL SELECT command. 

      The field to be returned can be selected with the 'select'
      property.

      The 'select' property determines the output. If the argument is
      'INDEX' then a vector is returned with index in 'L' that matches
      the 'where' property.

      Examples: 
        f = fullfile(fileparts(which('brede')), 'xml', 'wobibs.xml');
        B = brede_read_xml(f, 'output', 'collapsesecond');
        E = brede_bib_bib2exp(B)
        brede_exp_select(E, 'select', 'capsuleDescription')

        brede_exp_select(E, 'where', {'woexp' 'strcmp' '19' })

      See also BREDE, BREDE_EXP, BREDE_EXP_GETFIELD,
               BREDE_BIB_SELECT, BREDE_LOC_SELECT, BREDE_READ_XML,
               BREDE_STRUCT_SELECT.

 $Id: brede_exp_select.m,v 1.5 2004/06/01 20:56:56 fnielsen Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 27-Nov-2009 18:11:22 by m2html © 2005