Consider a matrix consisting of ones in the first column and anywhere the row index divides the column index. The 4x4 matrix is [1 1 1 1; 1 1 0 1; 1 0 1 0; 1 0 0 1]. The 1000x1000 matrix is depicted below.
Write a function to compute the determinant of these matrices, given an array of sizes.
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers4
Suggested Problems
-
Program an exclusive OR operation with logical operators
750 Solvers
-
Construct a string from letters and counts
146 Solvers
-
Back to basics 25 - Valid variable names
336 Solvers
-
Calculate the area of a triangle between three points
3413 Solvers
-
Magic is simple (for beginners)
11112 Solvers
More from this Author321
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!