Question: Activity 1 Write a function that calculates the frequency, amplitude, and phase shift of a given sinusoidal signal ( Sinusoidal equals sine wave, sin (

Activity1
Write a function that calculates the frequency, amplitude, and phase shift of a given sinusoidal signal
(Sinusoidal equals sine wave, sin(t).This function has two inputs X and t, which contain more than one period of a sinusoidal signal.Creat a sinusoidal signal with arbitrary frequency, amplitude and phase shift to check your function. Investigate how the step size (revolution) of the input sine wave affects the accuracy of the outputs. Note that the step size or resolution can be considered a sampling frequency, i.e. at what points in time is the sine wave defined or sampled.
Demonstrate your function for the instructor and print out your code/syntax
Activity 1
T=0:0.001:0.025;
X=20*sin((2*pi*40)*t);
Stem(t,x)
Activity 2
for Fs=2000, and Ts=1/Fs=0.0005, f=50,A=10
T=0:0.0005:0.02;
A=10;
F=50
X=A*sin((2*pi*F)*T);
Stem(t,x)
Activity 3
T=0:0.0005:0.025;
X=20*sin((2*pi*40)*t);
Stem(t,x)
Activity 4
Let us introduce=-0.4
t=0:0.001:0.025;
X=20*sin((2*pi*40)*t-0.4*pi);
Stem(t,x)
Activity 5
Now=+0.4
t=0:0.001:0.025;
X=20*sin((2*pi*40)*t+0.4*pi);
Stem(t,x)
Ploy(t,x)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!