-
3 Comments
Cedric
on 2 Mar 2013
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 '];
Alfonso Nieto-Castanon
on 2 Mar 2013
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)
Cedric
on 4 Mar 2013
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.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!