%% Lab Test 2 Tue Jan 13 17:30-19:30
%
% Please place your answers in the labelled spaces provided
% in this script. DO NOT MODIFY ANY LINES OF CODE PROVIDED
% TO YOU IN THIS SCRIPT.

%% 1(a)



%% 1(b)



%% 1(c)



%% 1(d)



%% 2(a)



%% 2(b)



%% 2(c)



%% 2(d)



%% 2(e)



%% 2(f)



%% 2(g)




%% 3(a)
px = -2.8;
py = 2.4;
% your answer goes below here; you can and should try different
% values for px and py



%% 3(b)
px = -2.8;
py = 2.4;
% your answer goes below here; you can and should try different
% values for px and py



%% 4(a)
[x, y] = q4a();

% your answer goes below here



%% 4(b)
X = q4b();

% your answer goes below here



%% 4(c)
%http://upload.wikimedia.org/wikipedia/commons/1/19/Colorful_fibers_-_mirrored_and_cropped_square.jpg
%By Colorful_fibers.jpg: Daniel Photos derivative work:
%Memphisto (Colorful_fibers.jpg) [CC-BY-SA-2.0 (http://creativecommons.org/licenses/by-sa/2.0)],
%via Wikimedia Commons
I = imread('test2.jpg');
I = double(I) / 255;
image(I);

% your answer goes below here





