
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

CS1371 Spring 2009 Practice Test 3 Solutions
Multiple Choice
Tracing โ Problem A
Tracing โ Problem B
Coding โ Problem 1 img = 255 โ img;
Coding โ Problem 2 c = polyfit(x,y,length(x)-1) ynew = polyval(c,xnew)
Coding โ Problem 3 [data Fs] = wavread('song.wav') y=2*abs(fft(data))/length(data); y = y(1:end/2); f_nyquist = Fs/2; x=linspace(0,f_nyquist,length(y)); plot(x,y)
Sorting Note: The pivots are bolded for clarity. [7, 4, 9, 16, 13, 3, 5, 18] [4, 3, 5] [7] [9, 16, 13, 18] [3] [4] [5] [7] [9] [16, 13, 18] [3] [4] [5] [7] [9] [13] [16] [18] [3, 4, 5, 7, 9, 13, 16, 18]