Info

この質問は閉じられています。 編集または回答するには再度開いてください。

microphone plot response documentation results different from execution results

3 ビュー (過去 30 日間)
Seetha Rama Raju Sanapala
Seetha Rama Raju Sanapala 2015 年 5 月 21 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have taken an example program from MATLAB documentation as below (phased array)
freq = [500 1000];
hmic = phased.CustomMicrophoneElement(...
'PolarPatternFrequencies',freq);
hmic
hmic.PolarPattern= mag2db([...
0.5+0.5*cosd(hmic.PolarPatternAngles);...
0.6+0.4*cosd(hmic.PolarPatternAngles)]);
plotResponse(hmic,freq,'Format','Polar');
ha = phased.ULA('NumElements',4,'ElementSpacing',0.5,...
'Element',hmic);
figure;
plotResponse(ha,freq,340,'Format','Polar')
ha = phased.ULA('NumElements',4,'ElementSpacing',0.5,...
'Element',hmic);
figure;
plotResponse(ha,freq,340,'Format','Polar')
When I run the results are different in the sense that the polar angle measurement is in reverse order. In the documentation plots, the angle measurement is positive for clockwise where as I get positive for anticlockwise. Why is this?
Is the documentation to be updated?

回答 (1 件)

Honglei Chen
Honglei Chen 2015 年 5 月 27 日
The documentation is not up to date. Thanks for catching that. The plot is now counter clockwise so the positive angles are above 0 degrees and negative angles are below 0 degrees. This seems to match people's expectation better.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by