Dynamic iterators in Do loop

*To*: mathgroup at smc.vnet.net*Subject*: [mg66278] Dynamic iterators in Do loop*From*: sai <iwillfail at gmail.com>*Date*: Sat, 6 May 2006 23:50:42 -0400 (EDT)*Sender*: owner-wri-mathgroup at wolfram.com

I have an (n,n) matrix. I want to define an (m,m) matrix [m<n] whose elements are defined from the (n,n) matrix. The value of n and m changes from problem to problem. How can i do this in mathematica?