Chapter 7
String Manipulation
Contents
Key Terms
string
substring
control characters
white space characters
leading blanks
trailing blanks
vectors of characters
empty string
string concatenation
delimiter
token
A string in the MATLAB® software consists of any number of characters and is contained in single quotes. Actually, strings are vectors in which every element is a single character, which means that many of the vector operations and functions that we have already seen work with strings.
MATLAB also has many built-in functions that are specifically written to manipulate strings. In some cases, strings ...
Get Matlab: A Practical Introduction to Programming and Problem Solving, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.