Cody

Solution 1939972

Submitted on 17 Sep 2019
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
NoBits =6; xmin = -5; xmax = 5; AnalogValue = [-2 -1 0 1 2]; BitCode=['010011' ; '011010' ; '100000' ; '100110' ; '101101']; assert(isequal(Digitization(NoBits,AnalogValue,xmin,xmax),BitCode))

Output argument "BitCode" (and maybe others) not assigned during call to "Digitization". Error in Test1 (line 6) assert(isequal(Digitization(NoBits,AnalogValue,xmin,xmax),BitCode))