I'm getting the error when I run the following line:
where n is my loop index. This is bizarre. For the record, when I stop at the breakpoint, typing this at the command line works:
save data/test1.mat U U_old dt
But I need to be able to change the filename within the loop, hence why I'm doing it the first way. When I type this at the command line:
I get the expected 'data/test1.mat' result. The variable U is an 889x4 matrix, U_old is the same size, and dt is a single float. Even typing
at the command line when I stop gives me this error. What gives?