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
Program an exclusive OR operation with logical operators
Back to basics 5 - Clipboard
Vectorizing, too easy or too hard?
Side of a rhombus
Find a Pythagorean triple
How many complete pizzas
All odd - all even
Magnitude of a vector
Add the positive numbers
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