singhji0000
Junior Member level 3
Hello all,
i needed to find the 2's compliment. I am getting result from comparator in form of 0 and 1 and the result are getting stored in array
eg. x = [1 0 1 1 0 0 1 1] from LSB to MSB
how can i find the 2's compliment for this result stored in the array using matlab program?
thanks
i needed to find the 2's compliment. I am getting result from comparator in form of 0 and 1 and the result are getting stored in array
eg. x = [1 0 1 1 0 0 1 1] from LSB to MSB
how can i find the 2's compliment for this result stored in the array using matlab program?
thanks