Question

Write MATLAB script to generate a sinusoidal signal with frequency 500Hz and amplitude 1.

Write MATLAB script to generate a sinusoidal signal with frequency 500Hz and amplitude 1.

Homework Answers

Answer #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.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Generate a Matlab Code for amplitude modulated signal by multiplying a message signal (a low frequency...
Generate a Matlab Code for amplitude modulated signal by multiplying a message signal (a low frequency cosine signal) with a carrier signal (a high frequency cosine signal). Sketch the Fourier transform of the modulated signal. Demodulate the modulated signal (with no noise) by again multiplying it with the same carrier signal. Sketch the Fourier transform of the signal obtained in c). Your task is to recover the message signal from the signal in c). Determine the type of filter you...
Write Matlab script to plot the spectrum (-? to ? radians) of DTMF signal for keys...
Write Matlab script to plot the spectrum (-? to ? radians) of DTMF signal for keys 1, A and B. Choose an appropriate sampling frequency. The DTMF frequencies are indicated in table 1.     Critically analyze the design specification.                                           Row/column 1209HZ 1336Hz 1477HZ 1633HZ 697 1 2 3 A 770 4 5 6 B 852 7 8 9 C 941 * 0 # D     Write Matlab script to plot the spectrum (-? to ? radians) of DTMF signal for...
Write a matlab script file to solve the differential equation dy/dt = 1 − y^3 with...
Write a matlab script file to solve the differential equation dy/dt = 1 − y^3 with initial condition y(0)=0, from t=0 to t=10. matlab question
Use MATLAB Write a script that simulates a dice throw, randomly printing to the screen (with...
Use MATLAB Write a script that simulates a dice throw, randomly printing to the screen (with equal probability) one of the integers from 1 to 6. Call your script DiceThrow.m EXTRA CREDIT (100%) Write a script that simulates a loaded dice throw, randomly printing to the screen one of the integers from 1 to 6, but with 6 twice as likely as all the others. Call your script LoadedDiceThrow.m
with brief description and legible Consider the sinusoidal (AC) voltage signal: v(t) = 650 cos (5000t...
with brief description and legible Consider the sinusoidal (AC) voltage signal: v(t) = 650 cos (5000t +30 grad) V 1) Find the value maximum amplitude of the voltage signal? 2) Find the value of the frequency in radians per second? 3) Find the value of the frequency in hertz? 4) Find the value of the period of the signal in seconds? 5) Find the value of the phase angle in degrees? 6) Find the value of the phase angle in...
Using Eq. (4), sketch the amplitude of the AM signal frequency spectrum equation 4: ??(??) =...
Using Eq. (4), sketch the amplitude of the AM signal frequency spectrum equation 4: ??(??) = ???? [1 + ???? cos ??????] cos ???? ??
For a message signal ?(?)=2cos100?(?)+18cos2000?? Write the expression for ???⁡(?)⁡???⁡???⁡(?). Consider amplitude of modulated signal as...
For a message signal ?(?)=2cos100?(?)+18cos2000?? Write the expression for ???⁡(?)⁡???⁡???⁡(?). Consider amplitude of modulated signal as A=10. Also,⁡??(?)=106, ??=1000? and⁡??=1. Hint: For determining ???⁡(?) , use the indefinite integral of ?(?), i.e., take the value of integral at ?=−∞ to be zero
5. The sinusoidal signal cos(ω0n + θ0) is periodic in n if the normalized frequency f0...
5. The sinusoidal signal cos(ω0n + θ0) is periodic in n if the normalized frequency f0 ω0 2π is a rational number, that is, f0 = MN , where M and N are integers. (a) Prove the above result. (b) Generate and plot (use the stem function) cos(0.1n−π/5), −20 ≤ n ≤ 20. Is this sequence periodic? Can you conclude periodicity from the plot? (c) Generate and plot (use the stem function) cos(0.1πn − π/5), −10 ≤ n ≤ 20....
write an always block that takes the clk_i (100MHz) and generate a clock clk_50k signal that...
write an always block that takes the clk_i (100MHz) and generate a clock clk_50k signal that has a frequency of 50 kHz. (note: 50kHz signal switches 100,000 times a second.) in verilog.
Given continuous analog signal xa(t)= e-100|t|. Write a MATLAB program to display its frequency spectra using...
Given continuous analog signal xa(t)= e-100|t|. Write a MATLAB program to display its frequency spectra using FFT. (Hints: To obtain the sampling signals x(n) = xa(nTs) , the sampling interval Tscan be less than 0.0025 sec)