Coding an Equation to be solved

1 回表示 (過去 30 日間)
Arjun Siddharth
Arjun Siddharth 2021 年 4 月 7 日
コメント済み: Arjun Siddharth 2021 年 4 月 21 日
I would like some help in coding equation 14, in order to solve equation 15 to obtain the value of C. Is this possible to do? I am not able to do it.

採用された回答

Alan Stevens
Alan Stevens 2021 年 4 月 7 日
This should do it, assuming you know the values of the other constants:
% Arbitrary data
L = 1;
rho = 1;
A = 1;
sigma = 1;
Mt = 1;
It = 1;
lambda = 1.162;
k = lambda/L;
% define functions without C
phia = @(x) (cos(k*x)-cosh(k*x)+sigma*(sin(k*x)-sinh(k*x)));
phiasq = @(x) phia(x);
dphidxa = @(x) -k*(sin(k*x)+sinh(k*x)-sigma*(cos(k*x)-cosh(k*x)));
S = rho*A*integral(phiasq,0,L) + Mt*phiasq(L) + It*dphidxa(L)^2;
C = sqrt(1/S);
disp(C)
  29 件のコメント
Alan Stevens
Alan Stevens 2021 年 4 月 21 日
Well, strictly, your value of L is outside the range of the values used for the curve fit, but the line is so straight I suspect this won't introduce a significant error here.
Arjun Siddharth
Arjun Siddharth 2021 年 4 月 21 日
oh okay. thanks!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by