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'} )
or
s = [ "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.