integrate a matrix which is a function of two variables
조회 수: 1 (최근 30일)
이전 댓글 표시
theta1=-180:180;
phi1=-90:90;
theta3dB=40;
[theta phi ]=meshgrid(theta1,phi1);
B=-min(12.*(theta./theta3dB).^2,Am);
how to integrate B, from theta 0 to 180?
댓글 수: 0
답변 (1개)
Athul Prakash
2019년 9월 27일
Not sure what you meant by integrate...
But I think you might be looking for something like cumsum, have a look at this:
Since you have discrete values of theta, a cummulative sum would approximate the integration over this range.
Hope it helps!
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!