clcsyms F(t)F(t)=[-5*cos(2*t) -5*sin(2*t) 3*exp(2*t); -2*(cos(2*t)+sin(2*t)) 2*(cos(2*t)-sin(2*t)) 0; cos(2*t) sin(2*t) exp(2*t)]invF=inv(F);t=0;invF0=subs(invF(t)) % Here
syms texpAt=F(t)*invF0DexpAt=diff(expAt)t=0;DexpA0=subs(DexpAt) % Here% if I did this instead: DexpA0=subs(DexpAt(t)) gives error
% but if I do it above doesn't give error. Why?
MATLAB: Function ‘subs’ different output for a (similar?) input
'subs' 'syms' 'diff'
Best Answer