Find the pattern between input and output.
Write a function that gives the correct output for any input.
Hint: magic
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers48
Suggested Problems
-
2530 Solvers
-
500 Solvers
-
288 Solvers
-
Number of 1s in a binary string
11503 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1283 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
The name of the function needs to be changed. Pattern is no longer accepted.
The function name has been changed to not conflict with a built-in function.