Problem 49632. Matrix Pattern 9
Find the pattern for the element of the matrix.
mat_pattern(2) = [
4 7
5 8];
mat_pattern(4) = [
4 7 10 13
5 8 11 14
6 9 12 15
7 10 13 16];
Solution Stats
Problem Comments
-
6 Comments
Show
3 older comments
William
on 27 Dec 2020
Doddy -- I think the last two columns of y_correct in problem 4 are incorrect.
Binbin Qi
on 2 Jan 2021
@William , I think it is correct.
William
on 2 Jan 2021
Binbin -- Yes, I see. It's just a more difficult problem than I thought it was!
Binbin Qi
on 3 Jan 2021
@William, Yes. It is hard to guess the author's thoughts
Rafael S.T. Vieira
on 30 Oct 2022
tip: pi is used as a factor.
Alexander Ross
on 13 Sep 2025
Can confirm that Rafael's hint proved vital to arriving at a solution that 1) works on all the cases in the test suite and 2) relies on the hidden pattern. Not all accepted solutions accomplished the latter.
Solution Comments
Show commentsProblem Recent Solvers122
Suggested Problems
-
29928 Solvers
-
Sum all integers from 1 to 2^n
17329 Solvers
-
Permute diagonal and antidiagonal
498 Solvers
-
Circular Primes (based on Project Euler, problem 35)
648 Solvers
-
1246 Solvers
More from this Author180
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!