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 Solvers60
Suggested Problems
-
Number of 1s in the Binary Representation of a Number
479 Solvers
-
Simple equation: Annual salary
4256 Solvers
-
Create an index-powered vector
933 Solvers
-
Replace Nonzero Numbers with 1
443 Solvers
-
Find out sum and carry of Binary adder
1694 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.