Home > brede > brede_bib_select.m

brede_bib_select

PURPOSE ^

brede_bib_select - Select fields or 'bib' structures

SYNOPSIS ^

function O = brede_bib_select(B, varargin)

DESCRIPTION ^

 brede_bib_select    - Select fields or 'bib' structures

      function O = brede_bib_select(B)

      Input:    B      'Bib' structures

      Property: Select [ {''} | field in B ] 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 'findstr', 'findstri'
                       'strcmp', 'strmatch' or 'strmatchi'
           
      Output:   O      Output, eg, 'bib' structures

      This function works somewhat similar as an SQL SELECT command. 

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

      Examples: 
        f = fullfile(fileparts(which('brede')), 'xml', 'wobibs.xml');
        B = brede_read_xml(f, 'output', 'collapsesecond');
        y = str2double(brede_bib_select(B, 'select', 'year'))
        hist(y, min(y):max(y))

      See also BREDE, BREDE_BIB, BREDE_BIB_GETFIELD,
               BREDE_LOC_SELECT, BREDE_READ_XML.

 $Id: brede_bib_select.m,v 1.4 2003/08/20 15:30:16 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