how to delete rows of the character '' from a column or column vector
Show older comments
how to delete rows of the character '' from a column or column vector
e.g column_vector={'2';'3';'';'54';'';'';'';'4';'19'} to become column_vector={'2';'3';'54';'4';'19'}
4 Comments
Azzi Abdelmalek
on 22 Jun 2015
Do you mean from a cell array? please post a sample of your data
AbelM Kusemererwa
on 22 Jun 2015
if the column_vector is a cell array as in the example provided, then the '' character is not a character at all, but an empty string which is detected by isempty. See Azzi's answer.
if the column_vector is a truly a column vector, it is a char array. Then the '' character may very well be a character which can be removed according to James' answer.
Using proper terminology helps in getting the right answer.
AbelM Kusemererwa
on 22 Jun 2015
Edited: AbelM Kusemererwa
on 22 Jun 2015
Accepted Answer
More Answers (0)
Categories
Find more on Bartlett in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!