Need help with this integral ? what is opstruct in integralcalc?
10 ビュー (過去 30 日間)
古いコメントを表示
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);
0 件のコメント
回答 (1 件)
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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Linear Algebra についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!