I have text file that contains alphanumeric data. The example data file 'myfile.txt' is as follows:
1,headache,1 2,fever,1 3,chest Pain,1
I want to read the data from 'myfile.txt' and save it as a structure in the MATLAB workspace.
MATLABstructuretextreadtextscan
1,headache,1 2,fever,1 3,chest Pain,1
Best Answer