Path: news.mathworks.com!not-for-mail
From: "Kishore " <kishore3385@yahoo.co.in>
Newsgroups: comp.soft-sys.matlab
Subject: how to copy a submatrix fro ma matrix
Date: Tue, 3 Nov 2009 23:36:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 18
Message-ID: <hcqep5$f8g$1@fred.mathworks.com>
Reply-To: "Kishore " <kishore3385@yahoo.co.in>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257291365 15632 172.30.248.37 (3 Nov 2009 23:36:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 3 Nov 2009 23:36:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1623297
Xref: news.mathworks.com comp.soft-sys.matlab:582208


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