I've got the problem narrowed down to this/
If I input an equation into the variable dfeq using input
dfeq then equals '2*x*y'
If I then use str2sym(dfeq), it outputs 2*x*y
however when I use that with diff(y,x)==str2ym(dfeq), it comes out without the y(x)
See below;
>> ode=diff(y,x)==str2sym(dfeq)
ode(x) =
diff(y(x), x) == 2*x*y
>> ode=diff(y,x)==2*x*y
ode(x) =
diff(y(x), x) == 2*x*y(x)
How do I get it keep the y(x) with str2sym?