function v=eqn1d(t,x) % EQN1D(t,x) evaluates the expression in the global string variable % fstring at the passed values of t and x. This is for purposes of % calling bdode45. global fstring v=eval(fstring);