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
Solution Comments
Show comments
Loading...
Problem Recent Solvers64
Suggested Problems
-
Find the two most distant points
2960 Solvers
-
Maximum running product for a string of numbers
2259 Solvers
-
Number of 1s in a binary string
11635 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
654 Solvers
-
Find my daddy long leg (No 's')
2859 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!
i dont see any pattern here.
Asif: think about where the ones are, and keep in mind that there's two kinds of indexing in MATLAB, n-dimensional and linear.