>> fun=inline('1/pi*0.97*3.7415*(10^8)*(x.^-5).*(2.7183^((1.43879*(10^4))/(x.*318).)-1)^-1')
fun =
Inline function:
fun(x) = 1/pi*0.97*3.7415*(10^8)*(x.^-5).*(2.7183^((1.43879*(10^4))/(x.*318).)-1)^-1
>> i=quad(fun,1,4)
??? Error using ==> inlineeval
Error in inline expression ==> 1/pi*0.97*3.7415*(10^8)*(x.^-5).*(2.7183^((1.43879*(10^4))/(x.*318).)-1)^-1
??? Error: Missing variable or function.
Error in ==> inline.subsref at 25
INLINE_OUT_ = inlineeval(INLINE_INPUTS_, INLINE_OBJ_.inputExpr, INLINE_OBJ_.expr);
Error in ==> quad at 62
y = f(x, varargin{:});
求大侠分析一下错在哪,谢谢啦

 採用された回答

rayer
rayer 2022 年 11 月 23 日

0 投票

fun = @(x)1/pi*0.97*3.7415*(10^8)*(x.^-5).*(2.7183.^((1.43879*(10^4))./(x*318))-1).^-1
quad(fun,3.7,4.8)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange函数基础知识 についてさらに検索

タグ

質問済み:

2022 年 11 月 23 日

回答済み:

2022 年 11 月 23 日

Community Treasure Hunt

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

Start Hunting!