removing specific rows from char array
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
sermet OGUTCU
le 27 Août 2021
Commenté : the cyclist
le 27 Août 2021
data=['01'; '02'; '03'; '04'; '05'; '06'; '07'; '08'; '09'; '10'];
How I can remove the 1st and 5th columns from data aray?
1 commentaire
the cyclist
le 27 Août 2021
data is a 10x2 character array, so it does not have a 5th column. I assume you meant row. See my solution.
Réponse acceptée
the cyclist
le 27 Août 2021
data=['01'; '02'; '03'; '04'; '05'; '06'; '07'; '08'; '09'; '10'];
data([1 5],:) = []
2 commentaires
the cyclist
le 27 Août 2021
data=['01'; '02'; '03'; '04'; '05'; '06'; '07'; '08'; '09'; '10'];
remove = [1 5];
data(remove,:) = []
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!