科迪
Given n as input, generate a n-by-n matrix 'O' using 0 and 1 .
example:
n=4 ans= [1 1 1 1 1 0 0 1 1 0 0 1 1 1 1 1]
Solution 1645426
Wow!
Solution 1644791
three solution, all great.
Most nonzero elements in row
6244 Solvers
Find the maximum number of decimal places in a set of numbers
1209 Solvers
Rotate a Matrix by 90 degrees
802 Solvers
Triangle sequence
2886 Solvers
Generalised Hamming Number
226 Solvers
Draw 'D'.
463 Solvers
Draw 'H'
580 Solvers
Draw 'I'
396 Solvers
Draw 'E'
567 Solvers
Win all the time!
13 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
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