MATLAB: G=(x).*(t)​+(r./(s.^2​)).*((y.^2​).-x).*t

matlab operator

>> returns the error: unexpected matlab operator >> please help

Best Answer

You have a dot operator where you do not need one:
g=(x).*(t)+(r./(s.^2)).*((y.^2).-x).*t
^
This works:
g=(x).*(t)+(r./(s.^2)).*((y.^2)-x).*t
Related Question