Need help with this integral ? what is opstruct in integralcalc?

10 ビュー (過去 30 日間)
Hira Asif
Hira Asif 2021 年 2 月 19 日
回答済み: David Goodmanson 2021 年 2 月 19 日
fun=@(t)(t.*N);
q= integral(fun,0,500);
fun_2=@(t)(1.*N);
s= integral(fun_2,0,500);
tau= q./s;
plot(tau,f,'linewidth', 1.5)
error
Error in integral (line 88)
Q = integralCalc(fun,a,b,opstruct);
Error in Lifetimeof_plasmon (line 66)
s= integral(fun_2,0,500);

回答 (1 件)

David Goodmanson
David Goodmanson 2021 年 2 月 19 日
Hello HA
I assume N is defined further on up since Matlab was not complaining about that. Try
fun_2=@(t)(ones(size(t))*N);
and see what happens

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by