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!