How do i remove rows that have a blank space in a cell array?
1 次查看(过去 30 天)
显示 更早的评论
I've imported a spreadsheet from excel that has a roster and information on people. How do I remove people from a cell array that did not fill out the email field?
0 个评论
回答(1 个)
Jos (10584)
2017-12-3
tf = cellfun(@isempty, C_email) % check each cell of the cell array holding the emails
C_people(tf) = [] % remove the cells in the cell array holding the people
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!