Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

strmatch (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the string class.

Syntax

c = strmatch(a, b)

c = strmatch(a, b, 'exact')

Description

Finds occurrences of a string in an input matrix.

Examples

Inputs

Name Description
a Specifies a character matrix.
b Specifies a string.
'exact' Reports only exact matches.

Outputs

Name Description
c Returns the indexes of rows in a that contain b. c is a column vector.

Examples

A = 'this';
B = strvcat('that', 'this is', 'this is not');
C = strmatch(A, B)
C = strmatch(A, B, 'exact')

Related Topics

findstr
strcmp
strcmpi
strfind


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit