Additional test cases have been added.
This is a poor question in that it tells you to swap the middle two columns of a 4x4 matrix, but then tests things other than than 4x4 matrices. You'll have to study the test cases and the given answers to see what the test maker is really after here :(
You may want to change the test description. You are not actually looking for the middle two columns. I won't give away the solution, but the columns you need to swap are hard-coded in. And using the two middle columns is ambiguous if the array is not an even length.
Can't understand test case 5. Can you improve this problem description?
You have mentioned that the input is 4X4 and then you tested on different dimensions. :(
Can i check the answer again after submit?and where
Problem title is misleading
Roll the Dice!
Project Euler: Problem 8, Find largest product in a large string of numbers
letter yes yes & letter no no
05 - Vector Equations 3
Beginner's Problem - Squaring
Is it an Armstrong number?
matlab indian players
Find the logic
Basics: 'Find the eigenvalues of given matrix
kmph to mps
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