MATLAB Answers

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

6 views (last 30 days)
Rachel Norton
Rachel Norton on 19 Jan 2021
Answered: Star Strider on 19 Jan 2021
Can someone please help me figure out my my code will not work. I am not understanding how to fix the error.

  0 Comments

Sign in to comment.

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.

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!