Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: ratio of filled elements length to width in matrix
Replies: 1   Last Post: May 5, 2013 10:56 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
praneeth chiluka

Posts: 1
Registered: 5/5/13
ratio of filled elements length to width in matrix
Posted: May 5, 2013 9:52 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.