CS1371_Practice_Test_3_Solutions_Fall07

CS1371_Practice_Test_3_Solutions_Fall07 - F. sound(note,

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

View Full Document Right Arrow Icon
CS 1371 Practice Test III Fall 2007 Problem 1 - Matrices A. C. A=[2, 5, 7; 3, 0, 3; 1, 3, 2] B=[9; 2; 5] inv(A)*B B. A: [1 2 3 4; 2 3 4 5; 3 4 5 6; 4 5 6 7] B: [7 6 5 4; 6 5 4 3; 5 4 3 2; 4 3 2 1] C: [1 2 3 4; 2 3 4 5; 3 4 5 6; 4 5 6 7] D: [1 2 3 4; 2 3 4 5; 3 4 5 6; 4 5 6 7] E: [1 0] C. function ret = myTranspose(mat) [rows cols] = size(mat); ret = zeros(cols, rows); for i = 1:rows for j = 1:cols ret(j,i) = mat(i, j); end end Problem 2 – Images 1. image(B) = B. 2. image(C) = A. 3. image(D) = E. None of the above
Background image of page 1

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

View Full DocumentRight Arrow Icon
4. D. 75 5. D. Green Problem 3 - Sound A. 3 seconds B. [note Fs] = wavread('violin.wav'); N = length(note); A. dt = 1/Fs B. Tmax = N/Fs C. Fmax = Fs/2 D. dF = Fs/N (or dF = 1/Tmax) E. note2 = note(round(linspace(1, N, round(N/2^(1/12)))))
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: F. sound(note, Fs*round(N/2^(1/12))) G. note = note*5 H. Power (or energy) versus frequency Problem 4 – Numerical Methods A. 1. ABCD Can be used to determine y1 if x1 = 3:8 2. BCD Can be used to determine y1 if x1 = 0 3. ABD Will return y1 = 4 if x1 = 5 . 4. C Creates a linear fit of the original data. 5. D Will not create a unique fit if x = [2 5 6] and y = [1 4 3] . B. function physics(time, velocity) dv = diff(velocity); dt = diff(time); a = dv./dt; plot(time(2:end), a) xlabel('Time') ylabel('Acceleration') title('Physics') Thanks to Jacey Planteen for her help on this test. Last Modified: 5:07PM, November 26 th 2007 by Shardul Bhatia...
View Full Document

This note was uploaded on 04/19/2010 for the course CS 1371 taught by Professor Stallworth during the Fall '08 term at Georgia Institute of Technology.

Page1 / 3

CS1371_Practice_Test_3_Solutions_Fall07 - F. sound(note,

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

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