How to take derivative of a function

1 view (last 30 days)
rohail khan
rohail khan on 24 Jun 2018
Answered: Star Strider on 25 Jun 2018
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)

Star Strider
Star Strider on 25 Jun 2018
If you have the Symbolic Math Toolbox, use that version of diff (link).

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!