Thanks in advance for your help.
I am having trouble getting a while loop to work. I am trying to make 20 plots, but only the first plot is made and nothing else.
Additionally, I use the exact same while loop/FileCounter code in a separate script and it works fine to make 20 plots. When I add in the snippet to plot below to the working code, an error comes up about a completely random section of code and even if I delete the new code the error still shows up and I have to close matlab in order to run the original, working code. But may be beside the point.
data_AM = ('<path>');
data_PM = ('<path>');
Any suggestions? I appreciate the help!