{'at','be','de','fr','nl','gb','es','it','pl','cz','sk','hu','ro'} transform into char array in matlab

You can transform the given set of strings into a character array in MATLAB using the char function. Here's an example:

main.m
strSet = {'at','be','de','fr','nl','gb','es','it','pl','cz','sk','hu','ro'};
charArray = char(strSet);
103 chars
3 lines

The resulting charArray will be a character array where each row represents one string from the given set.

related categories

gistlibby LogSnag