Differentiate with respect to 'cos(theta)'

1 view (last 30 days)
Hi, I am trying to differentiate with respect to cos(theta), but I can't seem to get matlab to do this. If I use the diff function I get:
>> diff(cos(the),cos(the))
ans =
diff(cos(the), cos(the))
When the answer I'm looking for is 1. If anyone knows of a way to do this it would be greatly appreciated! Cheers!

Accepted Answer

Walter Roberson
Walter Roberson on 22 Jun 2012

More Answers (0)

Categories

Find more on Programming 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!