The test-suite should probably be generalized to include different numbers of inputs in order to prevent solutions like this one.
Make the vector [1 2 3 4 5 6 7 8 9 10]
How to find the position of an element in a vector without using the find function
Make a run-length companion vector
Sum the entries of each column of a matrix which satisfy a logical condition.
Find Index of maximum Value and maximum Value of a vector
BULLSEYE Part 2: Reference Problem 18 BULLSEYE
Generate binary combinations for a given number of bit(s)
factor to number
ZigZag matrix with reflected format
Put Two 1D matrices into one 1D matrix
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