Cody

Problem 220. Signal filtering

Solution 3357518

Submitted on 24 Oct 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status 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)

m = struct with fields: Type: 'twister' Seed: 1205044359 State: [625×1 uint32]

Assertion failed.

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)

Undefined function 'chirp' for input arguments of type 'double'. Error in Test2 (line 1) y = chirp(0:0.0001:0.9999,50,1,150)' + randn(10000,1);

Suggested Problems

More from this Author3

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!