removing specific rows from char array
16 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
sermet OGUTCU
il 27 Ago 2021
Commentato: the cyclist
il 27 Ago 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 Commento
the cyclist
il 27 Ago 2021
data is a 10x2 character array, so it does not have a 5th column. I assume you meant row. See my solution.
Risposta accettata
the cyclist
il 27 Ago 2021
data=['01'; '02'; '03'; '04'; '05'; '06'; '07'; '08'; '09'; '10'];
data([1 5],:) = []
2 Commenti
the cyclist
il 27 Ago 2021
data=['01'; '02'; '03'; '04'; '05'; '06'; '07'; '08'; '09'; '10'];
remove = [1 5];
data(remove,:) = []
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB 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!