Cody

Solution 1699511

Submitted on 26 Dec 2018 by Binbin Qi
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
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))

ans = 5×6 char array '010011' '011010' '100000' '100110' '101101'