Problem 49577. Find the density of non-zero values
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 commentsProblem Recent Solvers31
Suggested Problems
-
Generate a random matrix A of (1,-1)
338 Solvers
-
509 Solvers
-
546 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
567 Solvers
-
Matlab Basics - Switching Assignments
314 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!