Problem 45803. SatCom #7: Thermal Noise in a Receiver
68.85% Correct | 31.15% Incorrect
Last Solution submitted on Mar 01, 2023
Addison Conzet on 1 Mar 2023 at 15:14
I passed all the tests but the regex fails.
Error using contains First argument must be text. Error in Test4 (line 4) assert(isequal(sum(contains(s,'regexp')),y_correct))
Addison Conzet on 1 Mar 2023 at 15:15
fixed by suppressing outputs
Dyuman Joshi on 1 Mar 2023 at 17:38
That is weird, as un-suppressing outputs usually should not have any problem to solution.
I checked the test suite and found that the OP used importdata instead of fileread to check for regexp, which caused that particular error. I have edited the test case.
@Addison your earlier solution is rescored to be correct.
Problem Recent Solvers34
Find my daddy long leg (No 's')
More from this Author17
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!