Home > Objects > @iData > strfind.m

iFit/strfind

PURPOSE ^

[match, field]=strfind(s, pattern, option) : search for pattern in iData

SYNOPSIS ^

function [match, field] = strfind(s, varargin)

DESCRIPTION ^

 [match, field]=strfind(s, pattern, option) : search for pattern in iData

   @iData/strfind function to look for patterns stored in iData

   [match,field] = findfstr(iData, pattern) returns the string containg 'str' 
     and the field name it appears in. If 'pattern' is set to '', the content of all
     character fields is returned.
   The 'option' may contain 'exact' to search for the exact occurence, and 'case'
   to specifiy a case sensitive search.

 input:  s: object or array (iData)
         pattern: string to search in object, or '' (char).
         option: 'exact' 'case' or '' (char)
 output: match: content of iData fields that contain 'str' (cellstr)
         field: name of iData fields that contain 'str' (cellstr)
 ex:     a=iData('sv1850.scn'); strfind(a,'ILL') or strfind(a,'TITLE','case')

 Version: Nov. 27, 2018
 See also iData, iData/set, iData/get, iData/findobj, iData/findfield

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 27-Nov-2018 10:56:24 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1