% # 8, p. 36: Find vector equations of the line that is parallel to u and passes through the point P.  


% you can save all your commands into one "m-file" which, when "ran" performs all of your calculations all at once


u = [2,4]
P = [1,1]
v = @(t) u + t*P

v(1)
v(0)
v(-1)

% This creates a figure and the "hold on" part let's you apply all of your plots to this one axis
figure; hold on;
plot(u(1),u(2)); % this plots the point u

