Integration using quad help

6 ビュー (過去 30 日間)
Ashis Pandey
Ashis Pandey 2021 年 3 月 6 日
回答済み: darova 2021 年 3 月 6 日
Can anyone explain why I am having an error
"Error in quad (line 67)
y = f(x, varargin{:});"???
I am trying to integrate e^(x)/((10*x)-1) with limits 0 to 200
y1 = quad('((exp.^(x)./((10.*x)-1)))',0,200)

回答 (1 件)

darova
darova 2021 年 3 月 6 日
try function handle
f = @(x) exp(x)./((10.*x)-1);
quad(f,0,200);
pay attention how i wrote

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by