% Simple examples of using matlab

% Turn the diary on to save the results

% diary 'simple.out'

% Create some variables.  Matlab supports scalars, strings, vectors
% and matrices.
'create some variables'

x=5
y=-13.5
name='Ally Oop'

% Create a row vector

xr = [3 5 -2 4]

% Create a column vector.  End with a semi-colon to avoid printing and
% then print it.

xc = [-2;6;1;8;4];
xc

%
