struct to non struct error in integral calc

Hello , i am getting this error
"Struct contents reference from a non-struct array object."
its a simmpe formulas, why i am getting error?
Thanks
a = @(th)(((sin((x./2).*cos(th))./cos(th)).^2).*(besselj(0,(k.L.*sin(th)))).*(sin(th)).^3);
a1 = integral(a,0,pi);

2 件のコメント

Andrei Bobrov
Andrei Bobrov 2017 年 6 月 16 日
What is it k.L ?
fima v
fima v 2017 年 6 月 16 日
parameters of dimentions and wavelength

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

 採用された回答

Walter Roberson
Walter Roberson 2017 年 6 月 16 日

1 投票

I suspect
k.L.*sin(th)
should be
k.*L.*sin(th)

1 件のコメント

fima v
fima v 2017 年 6 月 16 日
wowwww thank you very much :-)

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStructures についてさらに検索

タグ

質問済み:

2017 年 6 月 16 日

コメント済み:

2017 年 6 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by