Remove elements from cell array
显示 更早的评论
Hi all
array1 = {[3,4,5,6];[4,5,7,8];[1,2,6,8]}
toRemove= {{3};{[]};{1,2}}
How can I remove corresponding values in toRemove from array1? Resultant array may look like this
ResultantArray = {[4,5,6];[4,5,7,8];[6,8]}
As there is no element is toRemove{1,2} so [4,5,6,7,8] will remain as it is.
Thanks in anticipation.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 R Language 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!