An issue with accessing Dynare's simulation results

I want to average Dynare’s simulation results over multiple replications.
My plan is to:

  1. run my code with simul_replic=x option so that Dynare would generate a binary file.
  2. load the saved binary to MatLab
  3. average the variables over the replications and then filter the results.

I must be missing something, since on step 2 I run “load test_simul” (the binary file generated by Dynare) and receive an error message:

Any pointers would be appreciated.

Please have a look at the example github.com/JohannesPfeifer/DSGE_mod/tree/master/Hansen_1985

Thank you for sharing your code, Johannes.