integrate a matrix which is a function of two variables

1 回表示 (過去 30 日間)
Anandu S
Anandu S 2019 年 9 月 21 日
回答済み: Athul Prakash 2019 年 9 月 27 日
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?

回答 (1 件)

Athul Prakash
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!

カテゴリ

Help Center および File ExchangeNumerical Integration and Differential Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by