I need to oversample a received signal in OFDM by MATLAB, according to the below diagram, but when I oversample, I finally get the same number of samples however that should be double. !! The oversampling should be done after receiving the signal, .. as below
Could you please explain how can I do that resampling in MATLAB? I mean after receiving the signal, which is y = conv(x,h) + n; where x is the transmitted signal and h is the channel, and n is white noise. so. how can I perform the resampling for y ?
here is what I tried to do :
Y_r = resample(R,2,1); %% R is the received signal ty = (0:(length(Y_r)-1))*1*Ts/2; Y_r_new=exp(-1i*2*pi*Fc*ty).*Y_r; %the oversampled signal.
OK, till now is ok, but when I run this command, in the first time I put Y_r_new is the oversampled signal, and then change it into Y_r_old which is the original signal, I get an output with same length !!:
for isij=1:Numsymbol %%Numsymbol is the number of symbols R_D_fil_be=Y_r_new(1,(isij-1)*L_perOFDM+1:isij*L_perOFDM); %%L_perOFDM is number of carrier multiplied my symbol. end