mujee
Member level 1
hi guys
i have been trying to get plots of rectangular pulse and then a raised cosine pulse by first generating a rectangular pulse and then filtering it through firrcos filter but i m not getting the results
can anyone help me with code.....
x=round(rand(1,16000));
xk=(-1).^x; % BPSK symbols
xup=upsample(xk,100);
a=sqrt(100)*firrcos(255,0.01,1,2,'rolloff','sqrt');
x_Tx=filter(a,1,xup);
i have used this code because this was given to us in our first assignment.
there are few confusions in it too...first what would the ouptut of filter function be....i have checked matlab help but it doesnt say anything what does the function 'filter' outputs...i was trying to plot the output of filter function (because if it shapes the rectangular pulse then its output should be the reshaped rectangular pulse) but it didnt produce that raised cosine wave. which clearly shows there is something more going on which i really dont know
so can anyone help?
please help me to get the correct shape of raised cosine pulse
i have been trying to get plots of rectangular pulse and then a raised cosine pulse by first generating a rectangular pulse and then filtering it through firrcos filter but i m not getting the results
can anyone help me with code.....
x=round(rand(1,16000));
xk=(-1).^x; % BPSK symbols
xup=upsample(xk,100);
a=sqrt(100)*firrcos(255,0.01,1,2,'rolloff','sqrt');
x_Tx=filter(a,1,xup);
i have used this code because this was given to us in our first assignment.
there are few confusions in it too...first what would the ouptut of filter function be....i have checked matlab help but it doesnt say anything what does the function 'filter' outputs...i was trying to plot the output of filter function (because if it shapes the rectangular pulse then its output should be the reshaped rectangular pulse) but it didnt produce that raised cosine wave. which clearly shows there is something more going on which i really dont know
so can anyone help?
please help me to get the correct shape of raised cosine pulse