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
-
Replace NaNs with the number that appears to its left in the row.
3069 Solvers
-
1462 Solvers
-
Sum the elements in either diagonal of a square matrix
222 Solvers
-
Replace Nonzero Numbers with 1
448 Solvers
-
4686 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.