Given a n-bits number x, what is the sum of x to the binary inverted version of x? (this might be more simple than you think :-) )
n = 8
x = 1 (00000001)
n-bit binary inverted x = 254 (11111110)
then y = 255
The sum of the numbers in the vector
Maximum value in a matrix
Generate this matrix
Your favourite city!
Square root of a number
Count the numbers
How many complete pizzas (number 2)
Connect 4 (the boardgame)
Remove multiples of N
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office