如圖,公式是這個

我用了離散化來編程,程式如下:
derad=pi/180;
d=0.5;
M=10;
theta1=0:0.0002:10;
c1=exp(-j*(0:M-1)'*2*pi*d*sin(theta1*derad));
C=c1*c1'*((max(theta1*derad)-min(theta1*derad))/(length(theta1)-1));
這個是不是有點問題,能算出結果,但是我覺得好像少了點啥,而且對矩陣的積分也不大明白咋寫。。。
我還用了quad函式,但是matlab一直報錯,程式如下:
derad=pi/180;
d=0.5;
M=10;
c1=@(theta1)exp(-j*(0:M-1)'*2*pi*d*sin(theta1*derad));
C=quad(c1*c1',0,10);
matlab報錯截圖:

求大神解答
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/38446.html
標籤:其他
