I have a text file called data.txt that has the following data in it:
1 2 3 4 5 6 7 8 9 10
This file is in a subdirectory of my current working directory. When I load the file, I use one of the following commands:
load ./datafiles/data.txt% or
load C:\MATLAB6p5\work\datafiles\data.txt
MATLAB loads the data into the workspace and calls it _datafiles_data or _MATLAB6p5_work_datafiles_data respectively. I am not able to use the data because MATLAB variables cannot begin with an underscore.
Best Answer