qfunc

조회 수: 13 (최근 30일)
James
James 2011년 10월 10일
답변: Eslam Omari 2024년 5월 20일
I can not get the qfucn to work in my student version of matlab 2007 I keep getting this error "Undefined function or method 'qfunc' for input arguments of type 'double'. can any one help?

답변 (3개)

Jan
Jan 2011년 10월 10일
Have you installed this function? Is the parent folder included in the path? See pathtool and addpath.

Walter Roberson
Walter Roberson 2011년 10월 10일
The routine did exist in R2007a; it is part of the Communications Toolbox; see http://www.mathworks.com/help/releases/R2007a/toolbox/comm/ug/qfunc.html. The Communications Toolbox is not, however, one of the toolboxes that is included with the Student Version, and must be purchased as an add-on. (I don't know whether it is still possible to get the student version of that toolbox for the R2007a release.)

Eslam Omari
Eslam Omari 2024년 5월 20일
M_values = [1, 2, 4, 8]; average_SNR = 10;
for M = M_values
gamma_z = linspace(5, 220, 1000);
P_e = 2 *
qfunc(sqrt(2 * gamma_z *
sin(pi/8) / M));
plot(gamma_z, P_e);
hold on;
end
xlabel('Average Branch SNR (dB)'); ylabel('P_e'); title('Probability of Error for 8-PSK with MRC'); legend(arrayfun(@(M) sprintf('M=%d', M), M_values, 'UniformOutput', false)); grid on;
hold off;

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by