In MATLAB, a string is a one-dimensional array whose components are the numeric codes for the characters in the string. The characters displayed depend on the character set used in encoding a given font.The length of a string is the number
of characters in the string, including spaces. It is obtained using the familiar function 1ength.A string is defined by enclosing its characters in single quotes (a textual quote within a string is indicated by two quotes)