struct to non struct error in integral calc

조회 수: 3 (최근 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)

추가 답변 (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