MATLAB: How I can know if a string is empty or not! string empty please help me with a code ! thank you ! Best Answer How about the helpfully named isempty?:>>isempty('aaa')ans = 0>>isempty('')ans = 1Note that because strings are just matrices (of characters), it's the same test you use for matrix emptiness. Related SolutionsMATLAB: Simple Question Assigning to Strings [ASCII Problem] How was "odd" initialized? If you initialized it to [] then instead initialize it to '' (the empty string) MATLAB: How to define string character It creates a string (character array) containing just a single space character. Related QuestionNumber to string and char to string in tableHow to delete empty rows from string arrays contained in a cell arrayUndefined function ‘cell2str’ for input arguments of type ‘cell’.Extracting number from a stringFinding a character and returning that character
Best Answer