Too bad this problem number has a '5' in it! :-)
Any suggestions on my brute force method?
sorry, I added a couple of test cases to discourage this sort of solutions
Getting the indices from a vector
Doubling elements in a vector
Maximum value in a matrix
03 - Matrix Variables 1
5th Time's a Charm
Knights and Knaves (part 1)
fly fly away
Smallest distance between a point and a rectangle
Say something funny
German tank problem
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