Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
pick up the different values in every column

Subject: pick up the different values in every column

From: Mike

Date: 10 Jun, 2009 01:14:23

Message: 1 of 3

Hi

For statements like:

x=[1:3];y=[2:4];z=[3:5];A=[x;x;y;y;z;z]

A =

     1 2 3
     1 2 3
     2 3 4
     2 3 4
     3 4 5
     3 4 5

I'd like to pick up the different values in every column, such as the
first column would be 1, 2 and 3. How to do this please?

Mike

Subject: pick up the different values in every column

From: Zhelyazko

Date: 10 Jun, 2009 01:56:01

Message: 2 of 3

Check the unique function
>> doc unique

Subject: pick up the different values in every column

From: Mike

Date: 10 Jun, 2009 02:13:10

Message: 3 of 3

On Jun 10, 9:56 am, "Zhelyazko " <ztum...@yahoo.com> wrote:
> Check the unique function
>
> >> doc unique

Thank you very much.

Mike

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us