I have a mod file in which I would like to have many different shock blocks. I call perfect_foresight_setup and perfect_foresight_solver after each block but in the end, only the results from the last shock block and perfect foresight simulation are saved in a mat file. I want the results from each simulation saved in a separate mat file. How can I do that?
Thank you in advance!