Effacer les filtres
Effacer les filtres

How can I select the common value from table?

2 vues (au cours des 30 derniers jours)
Mira le
Mira le le 15 Sep 2021
Hello every one
I have this cell
S=
2
1 2 3
1 2 5
1 5
and the data like this
T=
1 2 4 5
2 3 5
1 2 4 5
1 2 3 5
each line from S I count it appearance in T as well as its index
I obtained this
vect=[ 3 1 3 4]
index=[1 2 3 4]
I sorted them and I obtained:
vect=[4 3 3 1 ]
index=[4 1 3 2]
So,
My issue is:
I want to remove the common value exist in almost all value of S
for example
value=2;
exist in all most of S, then I removed it
How Can I do thant?
thank you

Réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by