Hello!
I unzipped your files and tried to run the provided code on my end. I observed that the error comes on assigning the value of “A.data(4,:)” to “vrow”. I compared the file “eps1600.txt” to other files in the folder such as “velo1600.txt”, “sat1600.txt”, etc and realized that the file “eps1600.txt” lacks the two header lines present in every other file. Example, in the “sat1600.txt” file, we have
Meanwhile, in the file “eps1600.txt” we have
So, fixing the file “eps1600.txt” should resolve the error.
Hope this helps!
Thanks,
Varun