Problem 49637. Matrix Pattern 10
Find the pattern for the element of the matrix. Hint: use the "ceil" and "floor" functions.
mat_pattern(2) = [
5 0
14 9];
mat_pattern(3) = [
5 0 -6
14 9 3
24 19 13];
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
Doddy Kastanya
on 27 Dec 2020
Dear William,
I have checked again and they are correct. By the way, the test cases have been checked by MathWorks before I can publish the problem. If you already get a generic formula for the previous cases, it should work for x=7 as well. Hint: There are two other mathematical constants involved in the solution.
Yunpeng Teng
on 7 Jan 2021
I think when x=7,the y(7,1)is 62 not 61
Rafael S.T. Vieira
on 30 Oct 2022
tip: pi and e are used as factors.
Solution Comments
Show commentsProblem Recent Solvers53
Suggested Problems
-
3894 Solvers
-
Project Euler: Problem 7, Nth prime
1568 Solvers
-
Convert a Cell Array into an Array
1939 Solvers
-
675 Solvers
-
372 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!