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.

matrix manupulation row column transformation

Status
Not open for further replies.

zunayeed

Junior Member level 1
Junior Member level 1
Joined
May 4, 2011
Messages
15
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,373
suppose i have a matrix like this,
a = [ 1 2 3 4;
5 6 7 8;
9 10 11 12]
i want it like
b = [1 2;
3 4;
5 6;
7 8;
9 10;
11 12 ]
any idea in matlab ?
thanks in advance
 

What is your format of the matrices, before and after?

Does it start out as a 3x4 and go to a 6x2 every time, or do the dimensions vary?
Are you simply trying to take each row, split it in half, and add the right-hand half to a new row below the original?
 
its solved. thnks.
 
  • Like
Reactions: sayfee

    sayfee

    Points: 2
    Helpful Answer Positive Rating
how ?? plz give the solution
 

very simple transpose and reshape
thanks!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top