Matlab - Delete row in Cell array if value contains xxx

前端 未结 1 1388
盖世英雄少女心
盖世英雄少女心 2021-01-26 02:15

In Matlab how do I delete cells in a cell array that contains a varaible string. Say my cell array is

 \'C:\\svnTrunk\\RadarLib\\radarlb\\utilities\\scatteredIn         


        
相关标签:
1条回答
  • 2021-01-26 02:48

    Because today's your lucky day:

    A( cellfun('isempty', strfind(A, 'GenericModel')) )
    

    with A of course your cell array.

    0 讨论(0)
提交回复
热议问题