There are some problems with the test suite. Problems 3 and 5 have too many square brackets on the right, and Problem 4 uses a matrix that exceeds the preferred matrix dimensions.
I find the exact same problem with the test suite.
Please correct the test suite. I believe that I have submitted a correct solution
The test suite has been corrected.
Cody,please check the test file
Test 3 and 5 - invalid square brackets
Test 4 - array is too big, L = 1000; W = 119; would work the same way
Permute diagonal and antidiagonal
Calculate the height of an object dropped from the sky
Given a 4x4 matrix, swap the two middle columns
Generate the Matrix!
Cross ("+") flag returns
Create a "+" flag
Flag a convertible string
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