Given a number, convert it into the Maya numeral system.
n=7 >> Maya = .._
n=33 > Maya = . ...__
n=41 > Maya = .. .
Use the English alphabet (o), dot(.) and underscore(_) to represent the numerals. Use space to separate them.
Number of 1s in the Binary Representation of a Number
Make a run-length companion vector
Pi Estimate 1
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Can the knight take out the pawn?
Combinatorics - 01
Connect Four - 01
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