Basic Operations with Strings
This chapter presents some basic procedures for operating with strings and the MATLAB® built-in functions for performing the most commonly required string operations. The chapter is structured as follows, first, in Sect. 4.1, basic functions for searching and comparing strings are presented along with the concept of edit distance. Then, in Sect. 4.2, basic functions and procedures for string replacement and insertion are described. In Sect. 4.3, the specific problems of string segmentation and concatenation are addressed; and in Sect. 4.4 set operations with strings are presented and discussed. Finally, in Sect. 4.5 some illustrative exercises are proposed.
KeywordsRegular Expression Edit Distance Input String White Space Edit Operation
- The MathWorks (2011) MATLAB product documentation. http://www.mathworks.com/help/techdoc/. Accessed 2 Nov 2011