how to differentiate v(t) = 9.7*(1-(20/50).^4).^2 in matlab

% Differentiation of v(t) = 9.7*(1-(20/50).^4).^2

syms t % Define t as a symbolic variable v = 9.7*(1-(20/50).^4).^2; % Define v as a function of t diff_v = diff(v, t) % Calculate the derivative of v with respect to t

main.m

The output of `diff_v` will give us the first order derivative of `v(t)`.
75 chars
3 lines

related categories

gistlibby LogSnag