Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Simulink Model Usage

This is the Simulink model used in:

Chambers JD, Bornstein JC, Thomas EA (2011) Multiple Neural Oscillators and Muscle Feedback Are Required for the Intestinal Fed State Motor Program. *PLoS ONE* 6(5):e19597. doi:10.1371/journal.pone.0019597

To run the model, in MATLAB click **File -> Open**, then select the file **"Chambers et al 2010.mdl"**. Then press play.

The numerical values are set to produce the "control response" described in the paper. Changing the appropriate variables will produce all model figures in the paper.

When the model is run it saves matrices (**Circular_Muscle, Excitatory_Motor_Neurons, Inhbitory_Motor_Neurons, Sensory_Neurons, Serotonin_release**) in the MATLAB workspace. Each matrix has two columns, the first column is the simulation time for each data point and the second column is the numerical value of the activity in the population of neurons, or muscle etc. These matrices can be plotted using the MATLAB plot function to reproduce the figures in the paper. The **Circular_Muscle** matrix can be passed to the **muscleresponse** function (e.g. `muscleresponse(Circular_Muscle)`) and this function will calculate the duration of the activity episodes and quiescent periods as reported in the paper.

---

2025-06-02: Converted README to Markdown.
25 changes: 0 additions & 25 deletions README.txt

This file was deleted.