Aya2002
Advanced Member level 4
matlab symbolmapping
Hi experts,
i received this error message
??? Error using ==> feval
Error using ==> modem.abstractMod.checkModInputSizeBit at 13
Number of elements in each channel of input X must be an integer multiple of log2(M).
when i run the following code in matlab
clc;clear all;close all;
Tu=224e-6; %useful ofdm symbol period.
T=Tu/2048; % base band elementary period.
Kmax=1705; % number of subcarriers.
FS=4096; % IFFT/FFT length.
%%
%-------------------------------------------------
M=Kmax+1;
Data=randint(M,1,2); %Binary Data of Kmax+1=1706.
Datainp=modulate(modem.pskmod('M',8,'SymbolOrder','binary','InputType','bit'),Data);
figure(1);
subplot(211);
stem(Data(1:20));
title('Input Data');
subplot(212);
stem(real(Datainp(1:20)));
title('BPSK modulated data');
can someone explain what is the problem?
Thanks in advance
Hi experts,
i received this error message
??? Error using ==> feval
Error using ==> modem.abstractMod.checkModInputSizeBit at 13
Number of elements in each channel of input X must be an integer multiple of log2(M).
when i run the following code in matlab
clc;clear all;close all;
Tu=224e-6; %useful ofdm symbol period.
T=Tu/2048; % base band elementary period.
Kmax=1705; % number of subcarriers.
FS=4096; % IFFT/FFT length.
%%
%-------------------------------------------------
M=Kmax+1;
Data=randint(M,1,2); %Binary Data of Kmax+1=1706.
Datainp=modulate(modem.pskmod('M',8,'SymbolOrder','binary','InputType','bit'),Data);
figure(1);
subplot(211);
stem(Data(1:20));
title('Input Data');
subplot(212);
stem(real(Datainp(1:20)));
title('BPSK modulated data');
can someone explain what is the problem?
Thanks in advance