CS1371_PracticeTest1_Errata_Fall_2007

# CS1371_PracticeTest1_Errata_Fall_2007 - Solution A. A = [1...

This preview shows page 1. Sign up to view the full content.

CS 1371 Practice Test Errata – Fall 2007 Problem 1 – Vector Manipulation A. Consider the following code : A = 1:2:20; B = linspace(1,10,10); B((mod(B, 3) == 0)|((mod(B,5)==0))) = []; C = [A(5:end) A(1:5)]; [M in] = max(C); A(in) = -1; D = B([3 2 5]).*2; A(2:6)
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Solution A. A = [1 3 5 7 9 -1 13 15 17 19] B = [1 2 4 7 8] C = [9 11 13 15 17 19 1 3 5 7 9] D = [8 4 16] Problem 2 – Part B – Question 2B Class of a3: double Problem 4 – Part B E = [8 5 3 1] Last Modified: 12:33AM September 19 th 2007 by Shardul Bhatia...
View Full Document

## This note was uploaded on 01/26/2011 for the course CS 1371 taught by Professor Stallworth during the Spring '08 term at Georgia Institute of Technology.

Ask a homework question - tutors are online