ans =
If you have a symbolic variable that contains a function of another symbolic variable and you want to substitute values for that "inner" symbolic variable, use the subs function.
syms t
y = t.^2;
subs(y, t, 1:5)
syms x(t)
x(t) = t.^3;
x(1:5)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!