How to union columns in the same Variable (Array) ?

2 vues (au cours des 30 derniers jours)
hithere
hithere le 31 Oct 2014
Commenté : Jan le 1 Nov 2014
.
.
How do i union column 1,2,3.... 9 together in this case? All in the same variable.
  1 commentaire
Jan
Jan le 1 Nov 2014
Please do not post screen shots. It makes it much harder to create an answer.

Connectez-vous pour commenter.

Réponse acceptée

Jan
Jan le 1 Nov 2014
x = unique(wavelengtha_5(:));

Plus de réponses (2)

Azzi Abdelmalek
Azzi Abdelmalek le 31 Oct 2014
They are already in the same variable, but if you mean how to reshape for example the variable x
out=x(:)
  3 commentaires
Azzi Abdelmalek
Azzi Abdelmalek le 1 Nov 2014
What do you mean?
hithere
hithere le 1 Nov 2014
Modifié(e) : hithere le 1 Nov 2014
for example the variables is like this:
1 2 6
3 4 10
5 8 12
7 11 13
9 14 15
if they were in different variable, a union function will be
1
2
3
4
5
6
7
8
.
.
.
15
in ascending order and eliminating duplicates.
So im think how to have the same effect in this scenario.

Connectez-vous pour commenter.


Peter Perkins
Peter Perkins le 1 Nov 2014
I think you are looking for UNIQUE.
  1 commentaire
hithere
hithere le 1 Nov 2014
how should i go about doing that?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by