How can I automate simulations?

Simula­tions can be automated by a simula­tion script. A typical appli­ca­tion is to change boundary conditions or Batemo Cell Model parame­ters and perform and evaluate a set of simula­tions. Use the From Workspace, the From File or the From Spread­sheet block from the Simulink library browser under Simulink / Sources to dynam­i­cally change boundary conditions using a script. 

Adjust your boundary conditions and Batemo Cell Model parame­ters within a for-loop and use the command sim('YourModel') to start the simula­tion. The simula­tion results are saved with the To File or the To Workspace blocks from the Simulink library browser under Simulink / Sinks.