How to delete repeated column in this matrix?
Mostra commenti meno recenti
a= [6.7747 15.1502 126.0000
67.9227 33.3699 74.0000
54.9636 40.7709 74.0000
102.5013 144.4162 44.0000
67.9227 33.3699 74.0000
54.9636 40.7709 74.0000];
i should not get the repeated values and i should get like this.
b=[6.7747 15.1502 126.0000
67.9227 33.3699 74.0000
54.9636 40.7709 74.0000
102.5013 144.4162 44.0000];
4 Commenti
Image Analyst
il 30 Gen 2015
There are no repeated columns in that matrix. The example you gave was for a repeated row. Did you mean that instead? Or do you really mean column like you said?
Matlab111
il 30 Gen 2015
Niels
il 30 Gen 2015
I believe he refers to the fact that a matrix consist of rows and columns and that your example is, in contrast to what you state, referring to duplicate rows instead of columns ;)
Matlab111
il 30 Gen 2015
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!