Clear Filters
Clear Filters

How to fix this error? Index exceeds the number of array elements (9). I already search and I still couldn't find the solution.

1 view (last 30 days)
This is our coding. When we run, the error said that the index exceeds the number of array elements.
%==========INPUT ODE==========
function dydx=MixedPlate_ode(x,y,K,M,R,Pr,Sc,lambda,gamma,Du,Sr)
global K M R Pr Sc lambda gamma Du Sr
This is the error.
Index exceeds the number of array elements (9).

Answers (1)

Ruchika P Barman
Ruchika P Barman on 8 Jul 2022
It is my understanding that you are getting an error because you are trying to extract more than the number of elements present in the array. You are calling y(10) in the function but there is no tenth element present in y.


Community Treasure Hunt

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

Start Hunting!