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
-
Project Euler: Problem 9, Pythagorean numbers
1386 Solvers
-
519 Solvers
-
Number of 1s in a binary string
11132 Solvers
-
502 Solvers
-
Find the definite integral of various linear functions
61 Solvers
More from this Author323
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!