Write MATLAB script to generate a sinusoidal signal with frequency 500Hz and amplitude 1.
`Hey,
Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.
clc
clear all
close all
format long;
Fs=8000;
dt=1/Fs;
t=0:dt:(0.25-dt);
Fc=500;
x=sin(2*pi*Fc*t);
plot(t,x);
xlabel('Time');
ylabel('Amplitude');
title('sinusoidal signal with frequency 500Hz');
Kindly revert for any queries
Thanks.
Get Answers For Free
Most questions answered within 1 hours.