search for: makeode

Displaying 1 result from an estimated 1 matches for "makeode".

Did you mean: makedev
2010 Jul 21
0
Converting Between Character and Numeric Objects
...met4 = 10, met5 = 10) parameters = 1 ODE = function(t, state, parameters, S, velocity) { with(as.list(c(state, parameters, S, velocity)), { des = S %*% v #The products should look like this: #dmet1 = (-1)*met1^1*met2^1 + (0)*met2^1*met3^1 + (2)*met3^1 #Return list(des) }) } When I call 'makeODE' I get the following error (which I expected): Error in S %*% v : requires numeric/complex matrix/vector arguments I'm wondering if there is an easy way to remove the quotes on the elements on 'v' or make 'v' into a numeric vector so that I can initialize them with values?...