Cody

Solution 2266004

Submitted on 9 May 2020 by Nikolaos Nikolaou
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   Pass
d = 0.6; f = 12e9; e = 70; y_correct = 36.004213724092068; assert(isequal(ant_gain(d,f,e),y_correct))

l = 2.498270483333333e-02 gain = 3.600421372409207e+01

2   Pass
d = 30; f = 6e9; e = 65; y_correct = 63.641167063818799; assert(isequal(ant_gain(d,f,e),y_correct))

l = 4.996540966666667e-02 gain = 6.364116706381881e+01 gain = 6.364116706381880e+01

3   Pass
s=importdata('ant_gain.m'); y_correct=false; assert(isequal(sum(contains(s,'regexp')),y_correct))