deriving fractions in matlab

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

 채택된 답변

Walter Roberson
Walter Roberson 2013년 6월 18일

0 개 추천

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

댓글 수: 1

the noob
the noob 2013년 6월 18일
finally managed to do it, thank you guys :)

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 6월 18일

0 개 추천

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

the noob
the noob 2013년 6월 18일
finally managed to do it, thank you guys :)

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Manage Products에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by