Hi,
I am essentially trying to code the calculation in the attached photo. It feels like a rather simple computation but I have not succeeded using either the integral or integral2 functions.
L, TP, T, w, a, AL and epsilon are all just values with x and y being the parameters to integrate over.
Can anybody help?
Thank you!

1 件のコメント

Torsten
Torsten 2018 年 4 月 24 日
Your expression can easily be integrated analytically.
Best wishes
Torsten.

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

 採用された回答

Guillaume
Guillaume 2018 年 4 月 24 日

0 投票

Probably,
%L, TP, T, w, a, AL, epsilon, all defined prior to next line
innerintegral = @(y) w * (epsilon + a*y).^AL * L / T;
integralx = @(x) integral(innerintegral, 0, x);
outterintegral = @(x) (x*L/TP) - integralx(x);
integral(outterintegral, 0, 1, 'ArrayValued', true)

その他の回答 (0 件)

カテゴリ

質問済み:

2018 年 4 月 24 日

コメント済み:

2018 年 4 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by