Duobianry Signaling-Amplitude & Phase Response
This function is used plot the amplitude spectrum and phase spectrum of duobinary signaling scheme
function [Amplitude_Response
,Phase_Response
]= Duobinary_Signaling
()
//Duobinary Signaling Scheme
//Magnitude and Phase Response
rb
= input('Enter the bit rate=');
Tb
=1/rb
; //Bit duration
f
= -rb
/2:1/100:rb
/2;
Amplitude_Response
= abs(2*cos(%pi*f.
*Tb
));
Phase_Response
= -(%pi*f.
*Tb
);
subplot(2,1,1)
a
=gca();
a.x_location
="origin";
a.y_location
="origin";
plot(f
,Amplitude_Response
)
xlabel
('Frequency f---->')
ylabel
('|H(f)| ----->')
title('Amplitude Repsonse of Duobinary Singaling')
subplot(2,1,2)
a
=gca();
a.x_location
="origin";
a.y_location
="origin";
plot(f
,Phase_Response
)
xlabel
(' Frequency f---->')
ylabel
(' <H(f) ----->')
title('Phase Repsonse of Duobinary Singaling')
endfunction
//Result
//-->exec('C:\Users\SENTHILKUMAR\Desktop\Communication_Toolbox\Digital_Communication\New folder\Duobinary_Signaling.sci', -1)
//
//-->[Amplitude_Response,Phase_Response]= Duobinary_Signaling()
//Enter the bit rate= 8
Rate this code snippet:
0
Rating: 0 | Votes: 0
posted by Senthilkumar R