Hi @Skydriver
The script is probably failing because the file identifier “fid” is invalid. This happens when “fopen” is unable to find the file with the file name provided.
To solve this issue, ensure that file names are accurate and exist in the current folder or folder on the MATLAB path. If they aren’t in the current folder or folder on the MATLAB path, the full paths of the files must be provided.
For more information you can check out the documentation of “fopen” - https://www.mathworks.com/help/matlab/ref/fopen.html
Moreover, you can refer to this similar question - i had an error in my program with the fscanf i can't understand why it does not work?? thank you in advance - MATLAB Answers - MATLAB Central
Hope this helps.
