MATLAB:
fc=10000%career frequency
fc = 10000
fs=10*fc;%sampling freqeuncy
N=2000;Ts=1/fs;
t=[0:Ts:(N*Ts)-Ts];
mt= 2*cos(200*pi*t);
m=0.2;%Modulation inde
Ac=2/m;
ct=Ac*cos(20000*pi*t);
AM=mt.*ct;
figure;
subplot(221)
plot(t,AM,'g');title('AM signal');xlabel('t');ylabel('amplitude ');grid on
%Frequency spectrum
f=[-fs/2:fs/N:fs/2-fs/N];
subplot(222)
stem(f,fftshift(abs(fft(AM))),'r') ;
xlabel('f in Hz');ylabel('Magnitude');grid on;
title('Amplitude spectrum of AM signal');xlim([-2*fc ,2*fc])
%Demodulation
y1 = AM.*ct/Ac;
[b a] = butter(11,fc*2/fs);
y = filter(b,a,y1)/5;
subplot(223)
plot(t,y,'m'); title('Demodulated signal')
grid;xlabel('t')
ylabel('amplitude ')
I need Matlab code Message Carler cos (20.000rt) modulation index: 0,2 signal: 2 cos (2001tt) signal...
need matlab code
Exercise: Use MATLAB to generate a low frequency signal: xy(t) = 3 cos(1400) And a higher frequency signal: xz(t) = 2 cos(10,000st) Now add these two signals together to generate the dual-component signal: y(t) = 3 cos(14007a)+ 2 cos(10,000) Points to be addressed: Again, manually calculate the theoretical magnitude spectra of y(t) and show this in your report (use Microsoft Visio or similar for your diagram). Clearly label all axes! Contrast this working to what you see...
Use MATLAB to plot the AM DSBSC modulated signals with modulation index m=0.25,0.5,0.8,1.0,1.2,1.5,2.0 with carrier signal c(t)=20cos(2pi20000t) and massage signal m(t)=Vm cos(2pi3000t) along with the envelope.
Let m(t) = cos wmt denote the message signal to modulate with wm = 200 Hz. The carrier frequency is given by We = 100 Hz. You will perform modulation and demodulation of double sideband-suppresed carrier (DSB-SC). 1. Modulate m(t). (4 pts) Note: Denote the result of modulation as Smod(t). 2. Demodulate Smod(t). (6 pts) Note: Denote the result of modulation as Sdem(t). Note: To get full credits, strictly mark on m(t) recovered.
Please explain in detail and use MATLAB code. Thank you.
Prob. 4-1 FM and PM are, respectively, defined as FM: A cos ((t) PM: A cos (kpm(t)) The FM and PM coefficients. kf and kp are kf-100 and kp-2, respectively. The carrier frequency is 400 Hz (1) Plot both the time-domain and frequency-domain representation for two independent message signals, m1(t) and m2(t) using MATLAB. Figure 1 is, again, the illustration of the Rectangular pulse (a) Tn1(t) = 11(t _ 0.5)...
Consider frequency modulation with a sinusoidal message signal (tone modulation) m(t) = a cos(2πfmt). The modulated signal is: vFM(t) = Ac cos[2πfct + βf sin(2πfmt)]. with βf = kfa/fm being the modulation index. What is the bandwidth of the modulated signal.
Consider frequency modulation with a sinusoidal message signal (tone modulation) m(t) = a cos(2πfmt). The modulated signal is: vFM(t) = Ac cos[2πfct + βf sin(2πfmt)]. with βf = kfa/fm being the modulation index. What is the bandwidth of the modulated signal.
consider the signal using matlab
Problem 2: Consider a signal: x[n] 3cos(n7/3) + 2sin(nt/4)+ cos(n7/5) Using Matlab, (1) Plot this signal in time domain. Can you identify the various frequencies in this signal? Use n 0:1:1000 (2) Plot this signal in frequency domain using the "fft" command. Identify the individual frequencies in the plot. (3) Calculate the frequencies of these signals. In the frequency plot, 1000 2
Write a MATLAB code for the question below.
There is an initial signal containing 60 Hz sinusoid of amplitude 0.8 and a 150 Hz sinusoid of amplitude 1.2 corrupted by a noise - using the randn command - (zero-mean white noise with variance of 4). Plot the noisy signal in the time domain. After that compute the Fourier transform -using the fft command of the noisy signal, compute the two-sided spectrum. Define the frequency domain f and plot the single-sided...
Question 4: (20 points) An FM signal is modulated with message m(t)Am cos(2Tmt). The measured amplitude spectrum, SPM(f), is shown below: Amplitude spectrum of the frequency modulated signal 2 -2 5000 4000 3000 2000 -1000 1000 2000 3000 4000 5000 frequency f [Hz] a) What is the carrier frequency fe? b) What is the message frequency fm c) What is the FM modulation index Bf? Is it a narrowband or a wideband signal? d) Using Carson's rule, estimate the transmission...
Using QAM we wish to transmit the following baseband message signals Bcos (w t a) Show the time and frequency domain expression for the transmitted signal. Also, plot the magnitude of the frequency domain representation of the signal. b) On the receiver end, we demodulate the received signal by multiplying with 2cos(Wet +Au). Derive the expression of the demodulated signal in the time domain, before low-pass filtering. c) Derive the Fourier Transform of the demodulated signal.
Using QAM we wish...