Find the density of a non-zero values in a matrix
ex: for a matrix [1 0; 0 1] the density of non-zero values is 2/4=0.5
note: Round the solution to 2 decimal places
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers37
Suggested Problems
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2539 Solvers
-
924 Solvers
-
Find the area of a rectangle if length of the diagonal is given.
169 Solvers
-
381 Solvers
-
Matlab Basics II - Log and natural log
193 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!