delelte certain string data from cell
1 次查看(过去 30 天)
显示 更早的评论

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 个评论
采纳的回答
Star Strider
2021-5-29
C = {'abc';'def';'ghi';'ghi';'ghi';'jkl';'mno';'pqr'}
TF = ismember(C,'ghi')
Cnew = C(~TF,:)
.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cell Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!