t3vD - img = imread(filename); newImg = 255 - img(:,:,:);...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS1371 - Computing for Engineers - Test 3 Version D November 28th, 2007 Page 1 of 2 CS 1371 Computing for Engineers Test 3 Version D Solution Problem 1 – Matrices [15 Points] Line Number Output 1 [ 3 6 7 26 14 5 9 10 12 ] 2 [ 3 26 9 6 14 10 7 5 12 ] 3 [ 3 26 9 7 5 12 ] 4 [ 3 26 9 7 5 100 ] 5 [ 3 26 9 7 5 100 7 5 100 3 26 9 ] Problem 2 – Images [35 Points] I. Answer E D A A F II. function negativeImage(filename)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: img = imread(filename); newImg = 255 - img(:,:,:); imwrite(newImg, 'myPicture.jpg'); CS1371 - Computing for Engineers - Test 3 Version D November 28th, 2007 Page 2 of 2 Problem 3 Sounds [25 Points] 1. B 2. A 3. A 4. B 5. NO, NO, YES Problem 4 Numerical Methods [25 Points] 1. D 2. v = diff(x)./diff(t); a = diff(v)./diff(t(2:end)); 3. B 4. newX = spline(t, x, [1.5, 2.5])...
View Full Document

Page1 / 2

t3vD - img = imread(filename); newImg = 255 - img(:,:,:);...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online