delelte certain string data from cell
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Muhammad
am 29 Mai 2021
Bearbeitet: Jonas
am 30 Mai 2021

i want to delete Australia from this data using code
name= names (~any(cellfun('Australia',names),1:)
but i gives error so tell me an other way to del it
0 Kommentare
Akzeptierte Antwort
Star Strider
am 29 Mai 2021
C = {'abc';'def';'ghi';'ghi';'ghi';'jkl';'mno';'pqr'}
TF = ismember(C,'ghi')
Cnew = C(~TF,:)
.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Structures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!