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: Combine Coloumn In Another Matrix
Replies: 1   Last Post: Jun 10, 2014 6:14 AM

Advanced Search

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

Posts: 311
Registered: 6/14/06
Re: Combine Coloumn In Another Matrix
Posted: Jun 10, 2014 6:14 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Ellisa Dewi" <ell.fellix@gmail.com> wrote in message <ln66cc$ho5$1@newscl01ah.mathworks.com>...
> Dear Everybody
>
> I have a problem. I have a matrix in size 35x50. This matrix contain of x and y coordinate. I want to combine all of coloumn which contain x coordinate in one coloumn of new matrix (eg.matrix A(:,1)), and combine all of coloumn which contain y coordinate in one coloumn of the same matrix (eg.matrix A(:,2) . I don't know, what the syntax to make it in matlab. Maybe it was so simple, but i really newbie here. I need your help. Thanks for the attention.
>
> Sincerely
> Ellisa
>


Read the Getting Started section in the ML help.
B = [A(:,1) A(:,2)];

Barry



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.