data = load('myData\someData.dat')
Use a relative path. This assumes you are executing the program from it's home directory D:\myProjects.
If you need to call the script from different folders you should pass the path to the .dat as an argument to the script.