I'm getting an error I don't understand: Error using system_ex (line 2)
Show older comments
I'm getting an error running a script that I don't understand. I've called a function system_ex which reads as:
function xprime] = system_ex(t,x)
xprime(1,1)=(x(2));
xprime(2,1)=)-1.25/3.4*(x(1));
I then attempt to use ODE 45, typing
>> [t,y] = ode45(system_ex,[0,40],[0,3])
This returns the message
Error using system_ex (line 2)
I've saved system_ex.m to My Documents, and changed the current folder window on the side to my documents. I don't know what's going wrong. Please help
Accepted Answer
More Answers (1)
Categories
Find more on Programming in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!