How to take derivative of a function

hi, please can you help me to find derivative of the following .
x = t; y = sin(t);
z =cos(t)
% for the range-5 <= t <= +5
I tried to use diff function but it doesnt work.Any suggestions please

Answers (1)

If you have the Symbolic Math Toolbox, use that version of diff (link).

Asked:

on 24 Jun 2018

Answered:

on 25 Jun 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!