% WELCOMEFILE Welcomes users to ML04.
line1 = '  Welcome to Advanced Programming Techniques in MATLAB.';
line2 = '  This course should help you optimize code, learn';
line3 = 'how to communicate with users through error and';
line4 = 'warning messages, and use handles and objects.';

str = strvcat(line1,line2,line3,line4);
disp(str)

line5 = sprintf('\nIt''s %s now, so let''s get going.\n',datestr(now,16));

% SPRINTF uses C-style syntax for creating a string.  '%s' is string input.
% '\n' is a newline character, DATESTR prints date as string (format 16
% gives time only).  See HELP DATESTR for more information.

disp(line5)