MATLAB: Creating a new string matrix matrix Can ['abc';'ef';'xyz'] be used to create a new string matrix Best Answer s = string( {'abc';'ef';'xyz'} )ors = [ "abc";"ef";"xyz" ]work, but your start point there is not valid syntax since you cannot have a char array like that in the first place. Related SolutionsMATLAB: Similar to unique, how can i use for case insenisitive a = { 'abc' , 'aBc' , 'xyz' , 'Xyz'};[dummy, ia] = unique(lower(a));result = a(ia); MATLAB: How to define string character It creates a string (character array) containing just a single space character. Related QuestionAdd 2 type char matrix strings into a greater oneGenerate numeric code based on string valueDoes converting a string array to a char array add a third dimensionHow to convert all the cell in a columns from char to string
Best Answer