Covering some basic topics I haven't seen elsewhere on Cody.
Switch the byte order of the input (i.e. if little-endian -> big-endian and vice versa)
Program an exclusive OR operation with logical operators
Sum of diagonal of a square matrix
Back to basics 13 - Input variables
2 b | ~ 2 b
Back to basics 5 - Clipboard
Back to basics 22 - Rotate a matrix
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