フィルターのクリア

how to solve numerical derivation?

1 回表示 (過去 30 日間)
S.Sil
S.Sil 2015 年 11 月 25 日
コメント済み: Star Strider 2015 年 11 月 25 日
I am a beginner of matlab. I solved my problem using mathcad but also want to try it using matlab so it would be nice if anyone could assist me with some basic idea for solving this problem.
This is the figure that i solved in mathcad with all the given data.

採用された回答

Star Strider
Star Strider 2015 年 11 月 25 日
If you want to evaluate dC(x)/dx, you have to have the Symbolic Math Toolbox:
syms x
a = 0.1;
b = 0.3;
l = 0.25;
e = 71E-11;
C(x) = (2*pi*e*l)./acosh((a.^2 + b.^2 - x.^2)./(2*a*b));
dC = diff(C,x);
x = 0.05;
dCx = vpa(dC(x), 5)
dCx =
1.2753e-9
The vpa function limits the number of digits the numerical result is displayed with, and converts fractions that might otherwise result from the derivation to decimals.
The Symbolic Math Toolbox is an add-on (not part of core MATLAB), but worth buying if you do relatively frequent symbolic calculations.
  1 件のコメント
Star Strider
Star Strider 2015 年 11 月 25 日
My pleasure.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by