xcorr4text

Cross correlation of two text strings

Contents

Syntax

Description

out=xcorr4text(a, b) returns the cross correlation of strings a and b, which is a vector of length length(a)+length(b)-1.

out=xcorr4text(a, b, 1) plots the result for easy visualization.

Example

a = 'abcde';
b = 'xaxabcxabxabcdxabcdexa';
[out, matchedStr] = xcorr4text(a, b, 1);

Top page   Prev: wave2mfcc.m