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 Solvers62
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
53512 Solvers
-
Project Euler: Problem 9, Pythagorean numbers
1404 Solvers
-
Remove entire row and column in the matrix containing the input values
575 Solvers
-
388 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
2219 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.