Problem 49592. Matrix Pattern 2
Find the pattern behind the elements of the matrix.
mat_pattern(3) = [
0 0 1
1 1 0
1 0 0];
mat_pattern(4) = [
0 1 0 1
1 0 0 0
1 1 1 0
0 0 0 0];
Solution Stats
Problem Comments
-
2 Comments
Asif Newaz
on 7 Sep 2022
i dont see any pattern here.
Christian Schröder
on 28 Oct 2022
Asif: think about where the ones are, and keep in mind that there's two kinds of indexing in MATLAB, n-dimensional and linear.
Solution Comments
Show commentsGroup

Easy Sequences Volume I
- 10 Problems
- 8 Finishers
- Easy Sequences 1: Find the index of an element
- Easy Sequences 2: Trigonometric function with integral input and output
- Easy Sequences 3: Prime 44-number Squares
- Easy Sequences 4: Eliminate the Days of Confusion
- Easy Sequences 5: Project Euler Problem 1 - Again!
- Easy Sequences 6: Coefficient sums of derivatives
- Easy Sequences 9: Faithful Pairs
- Easy Sequences 10: Sum of Cumsums of Fibonacci Sequence
- Easy Sequences 11: Factorial Digits without Trailing Zeros
- Easy Sequences 12: 50th Prime
Problem Recent Solvers54
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!