struct to non struct error in integral calc

1 次查看(过去 30 天)
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);

采纳的回答

Walter Roberson
Walter Roberson 2017-6-16
I suspect
k.L.*sin(th)
should be
k.*L.*sin(th)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by