To differentiate v(t) = 9.2 with respect to t and evaluate it at t = 20 in matlab, you can follow these steps:
v(t) as a symbolic function using syms.v(t) with respect to t using the diff function.t = 20 using subs.Here is the code snippet that performs these steps:
main.m248 chars5 lines
The output of v20 should be 0, since v is a constant and its derivative with respect to t is zero.
gistlibby LogSnag