Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 23424

Submitted on 1 Feb 2012

Incorrect

13Size
Leading solution size is 11.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Fail
 
%%
y = sin(2*pi*(0:0.0001:0.9999)*100)' + randn(10000,1);
z = filt(y);
assert((sin(2*pi*(0:0.0001:0.9999)*100)*z/norm(sin(2*pi*(0:0.0001:0.9999)*100))/norm(z))>0.95)
Error: Undefined function or variable 'x'.
2
Fail
 
%%
y = chirp(0:0.0001:0.9999,50,1,150)' + randn(10000,1);
z = filt(y);
assert((chirp(0:0.0001:0.9999,50,1,150)*z/norm(chirp(0:0.0001:0.9999,50,1,150))/norm(z))>0.95)
Error: Undefined function or variable 'x'.