pos argument in steervec function

2 ビュー (過去 30 日間)
Orr Streicher
Orr Streicher 2021 年 2 月 3 日
回答済み: Shiva Kalyan Diwakaruni 2021 年 2 月 10 日
Hi,
I would like to create a steering vector using steervec function.
As far as i understand from the documentation the argument "pos" specifies the positions of the sensor array elements while i should define sensor position units in term of signal wavelength.
Here is an example from the documentatin:
elementPos = (0:.1:.4);
c = physconst('LightSpeed');
fc = 1e9;
lam = c/fc;
ang = [45;0];
sv = steervec(elementPos/lam,ang,3)
Now, I would like to create a stering vector based on speech signal with sampling freqency of fs=48000 [Hz].
Should fc in this case be equeal to fs?
This is what i tried to do , but im not sure if its right:
elementPos = [0,0,0; -0.03,0,0; 0,-0.03,0; -0.03,-0.03,0; 0,-0.09,0; -0.03,-0.09,0 ];
elementPos=elementPos.';
c = physconst('LightSpeed');
fc = sig_Fs;
lam = c/fc;
azang=[ 60, 120, 0, 180, -60, -120];
elevation_const=30;
ang=[azang;elevation_const*ones(1,length(azang))];
d = steervec(elementPos/lam,ang);
Thanks!

採用された回答

Shiva Kalyan Diwakaruni
Shiva Kalyan Diwakaruni 2021 年 2 月 10 日
Hi,
As you are trying to create a steering vector based on speech signal .Hence here incoming signal being speech signal with frequency 48000 HZ , the fc in this case is equal to fs and the remaining code being the same from the documentation except for the change in values of azimuth and elevation angles , the code looks fine.
thanks.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeArray Geometries and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by