clc clear all %% A program showing use of strings disp('Uses of Strings') % Uses of strings in programming % Strings are defined by single quotes %% EXAMPLE 1 disp(' Example 1') a='My name '; b='is Slim Shady'; % Join strings a and b together to form a % new string, c c=[a,b]; % Now to display the string % note the "s" is for string format fprintf(' %s\n\n',c)