I'm getting an error and don't know how to fix it.
1 view (last 30 days)
Rebekah Higgins on 13 May 2021
So I'm averaging a bunch of data and instead of opening up all the files manually and such, I'm using a for loop. Here's what my code looks like.
However, I get this error when I try to run it.
Error using fread
Invalid file identifier. Use fopen to generate a valid file identifier.
Error in in205 (line 6)
I'm not sure what the problem is or how to fix it. If I don't use a loop it works so any help would be greatly appreciated!!!
^the code that works without the loop