Find the pattern behind each element of the matrix.
mat_pattern(3) = [
1 0 1
0 1 0
1 0 1];
mat_pattern(2) = [
1 1;
0 0];
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers88
Suggested Problems
-
Remove any row in which a NaN appears
8796 Solvers
-
Replace NaNs with the number that appears to its left in the row.
3074 Solvers
-
12967 Solvers
-
Flip the main diagonal of a matrix
927 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
655 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!
See also Cody Problem 4.