Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Matlab: how to extract small blocks from large matrix

Status
Not open for further replies.

confi999

Junior Member level 3
Junior Member level 3
Joined
Dec 12, 2005
Messages
25
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,503
extract block matlab

Hi,
I have a 24000x24000 sparse matrix. I want to extract 4 blocks out of it;
(0,0) to (6000,6000)
(6001,6001) to (12000,12000)
(12001,12001) to (18000,18000)
(18001,18001) to (24000,24000)

By use of those my aim is to make a block diagonal matrix using matlab command 'blkdiag' .

Can anyone please help me with the matlab code to extract those 4 blocks.
Thank you so much.
 

large matrices in matlab

Hi

Use simple submatrix operator

e.g. A is 5x5 matrix. A(2:3,4:5) gives 2nd and 3rd rows and 4th and 5th columns. So results is 2x2 matrix. Or you can use A(1:5,1:2) gives 5x2 block extraction.

More details: **broken link removed**

Cheers
 

    confi999

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top