How to eliminate the rows with replication?

Hi, I have
a=[1 1 2],
I want to know all the possible arrangements of a, then I do the permutation which gives me:
> perms(a)
ans =
2 1 1
2 1 1
1 2 1
1 1 2
1 1 2
1 2 1
How to eliminate the rows that replicated? Thanks in advance.

Más respuestas (0)

Categorías

Más información sobre Entering Commands en Centro de ayuda y File Exchange.

Preguntada:

el 10 de Ag. de 2014

Respondida:

el 10 de Ag. de 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by