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: how to copy a submatrix fro ma matrix
Replies: 5   Last Post: Nov 4, 2009 9:52 PM

Advanced Search

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

Posts: 24
Registered: 11/30/08
how to copy a submatrix fro ma matrix
Posted: Nov 3, 2009 6:36 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

hello,

I would want to know if there is any command by which i can copy a sub matrix from a matrix.
What i mean is ,

A = [ 1 2 3 4 5 6;
3 4 4 5 6 7;
1.0e-2 1.2e-2 1.3e-2...
1 2 3 4 5 5]

In the above matrix, i need to copy all elements which are greater than 1,to some matrix,( i.e i do no want the row 1.0e-2.....

This can ofcourse be done in a loop,but is there any command which simplifies the process?

I used bsxfun() ,but it doesnt seem to have this feature.


Thanks



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2009. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Goodwin College of Professional Studies.