Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

findstr (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: string

Requires: MathScript RT Module

Syntax

c = findstr(a, b)

Description

Finds all occurrences of a string within another string. Unlike in the strfindall function, the order of parameters in findstr is not important. LabVIEW searches the longer string for occurrences of the shorter string.

Examples

Inputs

Name Description
a Specifies a string.
b Specifies a string.

Outputs

Name Description
c Returns the starting indexes in the longer string of all occurrences of the shorter string you want to find. c is a row vector.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

A = 'this is a test for findstr'
B = 'is'
C = findstr(A, B)

Related Topics

strcmp
strcmp_n
strfindall
strmatchall


 

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