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
Solution Comments
Show comments
Loading...
Problem Recent Solvers124
Suggested Problems
-
Sum of first n terms of a harmonic progression
499 Solvers
-
How long do each of the stages of the rocket take to burn?
456 Solvers
-
Create an n-by-n null matrix and fill with ones certain positions
717 Solvers
-
Create an index-powered vector
939 Solvers
-
the average value of the elements
2282 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!
Doddy -- I think the last two columns of y_correct in problem 4 are incorrect.
@William , I think it is correct.
Binbin -- Yes, I see. It's just a more difficult problem than I thought it was!
@William, Yes. It is hard to guess the author's thoughts
tip: pi is used as a factor.
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.