MATLAB: How can I produce unknown x(t) in Matlab and dx/dt

dx/dtx(t)-

For writing this equation in Matlab:
U0y= -ydot
which ydot is dy/dt, and y is function of t (y(t)), I wrote this simple code
y=sym('y');
t=sym('t');
Dx=diff('y', 't');
U0yy=-Dy
but according to results I found that I cannot insert dx/dt by this method to the equation and . How can I produce a variable x which is function of t and then have its derivative?
Thank you in advance.

Best Answer

syms y(t)
Dx = diff(y(t),t)