deriving fractions in matlab

hi, is it possible to derive a fraction? for example: (s+2)/(s^2+7)
thanks.

 Réponse acceptée

Walter Roberson
Walter Roberson le 18 Juin 2013

0 votes

You can use the symbolic toolbox. If you need to do it more "by hand" then use the chain rule.

1 commentaire

the noob
the noob le 18 Juin 2013
finally managed to do it, thank you guys :)

Connectez-vous pour commenter.

Plus de réponses (1)

Azzi Abdelmalek
Azzi Abdelmalek le 18 Juin 2013

0 votes

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 commentaire

the noob
the noob le 18 Juin 2013
finally managed to do it, thank you guys :)

Connectez-vous pour commenter.

Catégories

En savoir plus sur Manage Products dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by