Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



ratio of filled elements length to width in matrix
Posted:
May 5, 2013 9:52 AM


Can any one please help to code how to find ratio of filled elements length to width in matrix.
If I have a matrix of large size 100*100 but consider 6*6 now
A=[ 0 0 0 1 0 0; 0 3 2 4 0 0; 0 2 3 4 5 0; 0 1 3 4 5 0; 0 3 4 5 6 0; 0 0 0 0 0 0]
Now the ratio of length to width is 5/4



