struct to non struct error in integral calc

1 回表示 (過去 30 日間)
fima v
fima v 2017 年 6 月 16 日
コメント済み: fima v 2017 年 6 月 16 日
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 日
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 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by