how to delete particular row in given matrix?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Matlab111
il 4 Nov 2014
Modificato: Image Analyst
il 4 Nov 2014
like this ('a' and 'b' will get varies;in this row will get varies and column is constant)
a=[181.2033 169.4197 1.0000];
b=[86.2558 191.0205 0.9994
136.4055 194.7999 0.9992
181.2033 169.4197 1.0000
191.3842 193.7259 0.9983];
than the answer should be
c=[86.2558 191.0205 0.9994
136.4055 194.7999 0.9992
191.3842 193.7259 0.9983]
i should delete a row of 'a' in 'b'
1 Commento
Risposta accettata
Star Strider
il 4 Nov 2014
Use the setdiff function:
c = setdiff(b, a, 'rows');
This gives you the result you want.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!