deriving fractions in matlab

4 views (last 30 days)
the noob
the noob on 18 Jun 2013
hi, is it possible to derive a fraction? for example: (s+2)/(s^2+7)
thanks.

Accepted Answer

Walter Roberson
Walter Roberson on 18 Jun 2013
You can use the symbolic toolbox. If you need to do it more "by hand" then use the chain rule.
  1 Comment
the noob
the noob on 18 Jun 2013
finally managed to do it, thank you guys :)

Sign in to comment.

More Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 18 Jun 2013
You can also use an approximate derivation of your function:
s=0:0.01:100;
y=(s+2)./(s.^2+7);
dy=diff(y)./diff(s)
plot(s(1:end-1),dy)
  1 Comment
the noob
the noob on 18 Jun 2013
finally managed to do it, thank you guys :)

Sign in to comment.

Categories

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