I solved the problem using repmat but it gives a message that
"There was an issue submitting your solution
Remove inappropriate content. For guidelines, see About Cody"
Can anybody help me out ......
I might have misunderstood the statement, but to me the second test is wrong and td should be defined by
td = [' 8 '
' 5 27'
' 46 '];
I believe the test is correct; if north is 4 then the fourth number (46 for test 2) should appear in the north position (not 8, which is the second number)
Ah! I misunderstood the question then; I thought that there was a rotation in directions according to the north parameter, whereas the latter indicates which of the four numbers should be placed in the north position.
2 lines but a score of 132 :(
Find the sum of all the numbers of the input vector
Given two arrays, find the maximum overlap
The Hitchhiker's Guide to MATLAB
Back to basics 19 - character types
Make a run-length companion vector
Is this group simply connected?
Generate a melodic contour string matrix
Simulate one complete step in the Biham–Middleton–Levine traffic model
2048 Next Move
Twist 'n' Match
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