% cs3113f08HW01P03.m
% K. Ming Leung, September 21, 2008
% 10 points total.

clear;
rand('state',7);    % 1 pt

RandVec1 = rand(5,1)    % 1 pt
RandVec2 = rand(5,1)    % get different elements

rand('state',7);
RandRowVec1 = rand(1,11) % 1 pt
% 3 pts for the following observations:
% the first 5 elements the same as RandVec1,
% the next 5 elements the same as RandVec2,
% the next element is new & different than all
% the previous elements.

Vec1 = 2*RandVec1 + RandVec2,   % 1 pt
Vec2 = RandVec1 .* RandVec2,    % 1 pt
Vec3 = RandVec1 ./ RandVec2,    % 1 pt
dotProduct = transpose(RandVec1)* RandVec2,% 1pt
