Transmitter Subsystem Using Matlab (Sample Assignment)
Transmitter Subsystem Using Matlab (Sample Assignment)
For any Help with Transmitter Subsystem Assignment upload your Homework Assignment by clicking at Submit Your Assignment button or you can email it to info@matlabassignmentexperts.com .To talk to our Online Transmitter Subsystem Project Tutors you can call at +1 5208371215 or use our Live Chat option.
Transmitter Object
This sample assignment use a 100-microsecond linear FM pulse with a bandwidth of 200 kHz. Use the default sweep direction and sample rate. Set the PRF to 2 kHz.
wf = step(hpuls); [txoutput,txstatus] = step(htx,wf); t = unigrid(0,1/hpuls.SampleRate,1/hpuls.PRF,'[)'); subplot(211) plot(t,real(txoutput)); axis tight; grid on; ylabel('Amplitude'); title('Transmitter Output (real part) - One PRI'); subplot(212) plot(t,txstatus); axis([0 t(end) 0 1.5]); xlabel('Seconds'); grid on; ylabel('Off-On Status'); set(gca,'ytick',[0 1]); title('Transmitter Status');
Phase Noise
To model a coherent on receive radar, you can set the CoherentOnTransmit property to false and the PhaseNoiseOutputPort property to true. You can output the random phase added to each sample with step. To illustrate this process, the following example uses a rectangular pulse waveform with five pulses. A random phase is added to each sample of the waveform. Compute the phase of the output waveform and compare the phase to the phase noise returned by the stepmethod. For convenience, set the gain of the transmitter to 0 dB, the peak power to 1 W, and seed the random number generator to ensure reproducible results.
hrect = phased.RectangularWaveform('NumPulses',5); htx = phased.Transmitter('CoherentOnTransmit',false,... 'PhaseNoiseOutputPort',true,'Gain',0,'PeakPower',1,... 'SeedSource','Property','Seed',1000); wf = step(hrect); [txtoutput,phnoise] = step(htx,wf); phdeg = radtodeg(phnoise); phdeg(phdeg>180)= phdeg(phdeg>180)-360; plot(wf); title('Input Waveform'); axis([0 length(wf) 0 1.5]); ylabel('Amplitude'); grid on; figure; subplot(2,1,1) plot(radtodeg(atan2(imag(txtoutput),real(txtoutput))))
title('Phase of the Output'); ylabel('Degrees'); axis([0 length(wf) -180 180]); grid on; subplot(2,1,2) plot(phdeg); title('Phase Noise'); ylabel('Degrees'); axis([0 length(wf) -180 180]); grid on;
The first figure shows the waveform. The phase of each pulse at the input to the transmitter is zero. In the second figure, the top plot shows the phase of the transmitter output waveform. The bottom plot shows the phase added to each sample. Focus on the first 100 samples. The pulse waveform is equal to 1 for samples 150 and 0 for samples 51100. The added random phase is a constant 124.7 degrees for samples 1100, but this affects the output only when the pulse waveform is nonzero. In the output waveform, you see that the output waveform has a phase of 124.7 degrees for samples 150 and 0 for 51100. Examining the transmitter output and phase noise for samples where the input waveform is nonzero, you see that the phase output of step and the phase of the transmitter output agree.