I'm new to Matlab, and I'm trying to solve the differential equation y'=-y/n for a constant n. I define the function in a script like this:
function dv = lc(v1)
dv = -v1/(0.0000047*0.000001);
And then try and solve it like this:
[t,v] = ode23('lc',[0 5],1)
But the operation never finishes executing. It just eats up my RAM and says "Busy" in the corner, until I press ctrl+c to terminate it. What am I doing wrong here?