Alaa_
Newbie level 2
salam 3laikom guys
i really need your help
i want a matlab code for ASk i'm using version 6.0.1 please help
i have to give it to my instructor after 5 hours
i have been searching for 5 hours and i didn't find anything
i tried this code but error has occured
len = 10000; % Number of symbols
M = 16; % Size of alphabet
msg = randint(len,1,M); % Original signal
% Modulate using PAM,
txpam = pammod(msg,M);
% Perturb the phase of the modulated signal.
phasenoise = randn(len,1)*.015;
rxpam = txpam.*exp(j*2*pi*phasenoise);
% Create a scatter plot of the received signal.
scatterplot(rxpam); title('Noisy PAM Scatter Plot');
% Demodulate the received signal.
recovpam = pamdemod(rxpam,M);
% Compute number of symbol errors.
numerrs_pam = symerr(msg,recovpam);
??? Undefined function or variable 'pammod'.
please help
>>
i'm checking after 3hours
thx.
i really need your help
i want a matlab code for ASk i'm using version 6.0.1 please help
i have to give it to my instructor after 5 hours
i have been searching for 5 hours and i didn't find anything
i tried this code but error has occured
len = 10000; % Number of symbols
M = 16; % Size of alphabet
msg = randint(len,1,M); % Original signal
% Modulate using PAM,
txpam = pammod(msg,M);
% Perturb the phase of the modulated signal.
phasenoise = randn(len,1)*.015;
rxpam = txpam.*exp(j*2*pi*phasenoise);
% Create a scatter plot of the received signal.
scatterplot(rxpam); title('Noisy PAM Scatter Plot');
% Demodulate the received signal.
recovpam = pamdemod(rxpam,M);
% Compute number of symbol errors.
numerrs_pam = symerr(msg,recovpam);
??? Undefined function or variable 'pammod'.
please help
>>
i'm checking after 3hours
thx.