MATLAB: How is derivative made in Matlab

matlab function

The velocity change of a motile is given as V(T)=T^3-6T^2+7 m/s.
calculate the acceleration at t= 3.5 seconds on matlab
to find the acceleration, I have to take the derivative of the given function and multiply it by 3.5.I find the derivative of the function, but I can't multiply it.

Best Answer

  • syms v(t)
    v(t)=t.^3-6t.^2+7;
    a(t)=diff(v);
    result=a(3.5)