Using MATLAB plot both signals [a) 40*sin (30πt + π/2) & b) 30*cos (24πt+π/4)] if they were sampled at 1 kHz for 100 MS if the signal y, composed of both signals a and b, use subplot to show the signal y with a white gaussian noise of 2?



You are suppose to add “White gaussian noise of 2 variance”…..
Signal a Signal b Signal Y with and without noise MATLAB Code

clc
clear
close all
fs=1000; % sampling frequency 1kHz
ts=1/fs; % sampling time
ms=1e-3; % define a variable ms
time=100*ms; % duration of signal
t=0:ts:time; % generate time samples with interval of ms
a=40*sin(30*pi*t+(pi/2)); % signal a
b=30*cos(24*pi*t+(pi/4)); % signal b
% Plot signal a
plot(t,a)
xlabel('Time (in ms)')
ylabel('Amplitude')
title('40*sin(30*\pi*t+\pi/2)')
% Plot signal b
figure
plot(t,b)
xlabel('Time (in ms)')
ylabel('Amplitude') title('30*cos(24*\pi*t+\pi/4)')
% Generate signal y
y=a+b;
% add white noise of variance 2
y1=y+sqrt(2)*randn(size(a));
figure,
subplot(121)
plot(t,y)
xlabel('Time (in ms)')
ylabel('Amplitude')
title('Signal Y')
subplot(122)
plot(t,y1)
xlabel('Time (in ms)')
ylabel('Amplitude')
title('Signal Y with white gaussian noise of 2 variance')

Matlabsolutions.com provides guaranteed satisfaction with a commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been empanelled after extensive research and quality check.

Matlabsolutions.com provides undivided attention to each Matlab assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work done at the best price in industry.