MATLAB: Convert list of strings to char arrays

fullfilestring

I have list of directories stored as strings, the variable containing this list is 1xN string. I need to pass them one by one in a loop to the fullfile() function. Unfortunately attempting this, Matlab says that "String input is not supported" for the fullfile function. Well then, how do I convert the strings to char vectors, please?

Best Answer

One at a time: char
Or all at once: convertstringstochars