Got Questions? Get Answers.
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:
rows and columns

Subject: rows and columns

From: Venkatesh Swargam

Date: 11 Dec, 2012 09:27:06

Message: 1 of 3

I need to get to display the values present in row. if the value is more than once even thn the value must be displayed only once.
EX:
24234 5 4546 656
24234 7 4546 656
24234 5 4546 656
24234 4 4546 656
24234 3 4546 656
24234 3 4546 656
24234 5 4546 656
4234 3 4546 656

the output must be the values present in the row are 2 3 4 5 7??????
please suggest me any method to display in such a way




Thanking you,

Subject: rows and columns

From: Nasser M. Abbasi

Date: 11 Dec, 2012 10:59:57

Message: 2 of 3

On 12/11/2012 3:27 AM, Venkatesh Swargam wrote:
> I need to get to display the values present in row. if the value is more than once even thn
>the value must be displayed only once.
> EX:
> 24234 5 4546 656
> 24234 7 4546 656
> 24234 5 4546 656
> 24234 4 4546 656
> 24234 3 4546 656
> 24234 3 4546 656
> 24234 5 4546 656
> 4234 3 4546 656
>
> the output must be the values present in the row are 2 3 4 5 7??????
> please suggest me any method to display in such a way
>

Having a hard time understanding you. May be you mean you
want to display unique rows only ? (but then row 7 is the same
as row 1, so why list it?

If so, then try

unique(A,'rows')

otherwise, try to write your question more clearly.

--Nasser

Subject: rows and columns

From: Jos (10584)

Date: 11 Dec, 2012 11:05:08

Message: 3 of 3

"Venkatesh Swargam" <swargam.venkatesh@gmail.com> wrote in message <ka6u9a$d5s$1@newscl01ah.mathworks.com>...
> I need to get to display the values present in row. if the value is more than once even thn the value must be displayed only once.
> EX:
> 24234 5 4546 656
> 24234 7 4546 656
> 24234 5 4546 656
> 24234 4 4546 656
> 24234 3 4546 656
> 24234 3 4546 656
> 24234 5 4546 656
> 4234 3 4546 656
>
> the output must be the values present in the row are 2 3 4 5 7??????
> please suggest me any method to display in such a way
>
>
>
>
> Thanking you,

Take a look at the UNIQUE function.

help unique

~ Jos

Tags for this Thread

No tags are associated with 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