how to identify empty , non-empty char matrix condition?
Show older comments
I have a matrix "A" with size 4x8 char and having values:
'01:04:00'
'01:03:00'
' '
'01:01:00'
I want to identify the index of empty char. I.e. 3rd one.
I tried,
% first one
A == ""
% second one
A == ''
% third one
isempty(A)
% forth one
isspace(A)
% fifth one
A == ' '
% sixth one
A == " "
% everything shows zero output.
Can anyone please help?
Any help will be greatly appriciated.
Accepted Answer
More Answers (1)
MP
on 18 Jul 2022
0 votes
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!