%
% A01.m
%
% Hello World:  the Fancy Version
%
% Programming Concepts:  displaying text to screen, use of the semicolon 
%                           operator ";" to supress output on calculations,
%                           housekeeping commands to tidy up.
%
% Matlab-Monkey.com
% 12/30/2014

% the following 3 commands are useful housekeeping tools to help tidy-up
% your workspace
clc         % clear command window
clear       % clear all variables
close all   % close all graphics windows

% prints a message to the command window using the disp (display) command
disp('hello world')

% adds 1 + 1 and stores the result (2) in the variable x. Because the 
% statement has a semi-colon at the end, the result is not printed to the 
% command window
x = 1+1;

% this calculation has no semicolon, so the result 6 is printed to the 
% command window 
y = x + 4


