I have a program which was designed to be used through the MatLab GUI that I need to use via command line code. I am having trouble getting it to read in the file properly. The program requires the file to be a cell array of strings in a two-dimensional format (i.e. 40x10 array of strings). When using the MatLab GUI, I simply use "Import Data" to highlight the 40x10 area and upload as a Cell Array (Text option: String Array; appears as a 40x10 cell array in the Workspace).
Via Code: When using the following 'textscan' MatLab code: CellArray = textscan(FileName,'%s%s%s%s%s%s%s%s%s%s','Delimiter',',');
And using the "size" command to determine its dimensions ([m, n] = size(Features)), it seems as though it is being imported as a 1x10 array rather than a 40x10 array.
How do I upload the file as a 40x10 cell array via code (not via the GUI) in the manner I described? Thank you.