Skip to main content

Basic Operations with Strings

  • Chapter
  • First Online:
Book cover Text Mining with MATLAB®
  • 6905 Accesses

Abstract

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 89.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 119.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Proposed by the Russian mathematician Vladimir Levenshtein in 1965.

References

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Rafael E. Banchs .

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Springer Science+Business Media New York

About this chapter

Cite this chapter

Banchs, R.E. (2013). Basic Operations with Strings. In: Text Mining with MATLAB®. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-4151-9_4

Download citation

  • DOI: https://doi.org/10.1007/978-1-4614-4151-9_4

  • Published:

  • Publisher Name: Springer, New York, NY

  • Print ISBN: 978-1-4614-4150-2

  • Online ISBN: 978-1-4614-4151-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics