Hodgkin-Huxley Error Code: Index exceeds the number of array elements (1)

2 views (last 30 days)
Can someone please help me figure out my my code will not work. I am not understanding how to fix the error.

Answers (1)

Star Strider
Star Strider on 19 Jan 2021
Your differential equation returns a column vector of 4 elements, so it is necessary for the initial conditions vector and whatever ‘y’ is in the other screen capture to have 4 elements as well.

Categories

Find more on Neural Simulation in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!