## Ionic model example in Matlab

### Description

- This example will guide you through running a simple ionic model (Beeler-Reuter) in Matlab

### Run the model

- Start the Matlab application
- Download the following Matlab files into a single separate folder
All four files as a zip package: (rebeelerreuter.zip)

Each file separately: (BR_2.m), (BR_deriv_std.m), (BR_deriv_vts.m), (RK4.m)

- File→Set Path...→Add Folder...
- Navigate to the folder created in the last step, and add that path

In the Matlab command window, type

**BR_2**(elapsed time will be printed when it is finished running)- Create plots by typing in the following commands
**plot(t,Vm)**: plots the transmembrane potential**plot(t,Ca_i)**: plots the intracellular Ca2+**plot(t,i_Na)**: plots the Na+ current**plot(t,i_Ca)**: plots the Ca2+ current**plot(t,i_K1)**: plots the K+ current**plot(t,i_x1)**: plotd another K+ current