# Answered Essay: Sin wave simulation Use the following codes, and answer the questions. % Parameter setting A = 1: %Amplitude f = 1: %frequency P = Sin wave simulation Use the following codes, and answer the questions. % Parameter setting A = 1: %Amplitude f = 1: %frequency P = 0: %Phase time = 1.5: %time duration N = 1000: %Sampling number t = 0: time/(N-l): time: %Generate sin wave s = A * sin(2 * pi * f * t + P): %Draw figure plot(t, s) grid on xlabel(‘Time’) ylabel(‘Amplitude’) Run the code and plot the figure: what is the period of the output signal? Change the A = 0.5, then run the code: what is the root mean square voltage of the signal? Change the f = 2, then run the code: what is the period of the output signal? Change the P = pi/4, then run the code: what is the value of the single at time = 0? Addition of frequency components Now, use the code provided before to generate 2 sin waves. S_1(t) = sin(2 pi ft) S_2(t) = 1/3 sin(2 pi 3 ft) Draw the two frequency components. Add the two frequency components together and draw it.          output copyable code

%M2 question 1 and 2 answer

%parameter setting

A=1; %Amplitude

f=1; %Frequency

P=0; %Phase

time=1.5; %time duration

N=1000; %Sampling Number

t=0:time/(N-1):time;

% sin wave s1

sin1=A*sin(2*pi*f*t);

% sin wave s1

sin2=1/3*sin(2*pi*3*f*t);

%Draw two frequency components

subplot(2,2,1);

plot(t,s1);

title(‘Sinusoidal: Sin(sin1)’);

xlabel(‘Time (Second)’);

ylabel(‘Amplitude’);

grid on;

subplot(2,2,2);

plot(t,s2);

title(‘Sinusoidal: Sin(sin2)’);

xlabel(‘Time (Second)’);

ylabel(‘Amplitude’);

grid on;

% Adding frequency Components

sin3=sin(2*3*pi*f*t+2*pi*f*t);

subplot(2,2,3);

plot(t,sin3);

title(‘Sinusoidal: Sin(sin1+sin2)’);

xlabel(‘Time (Second)’);

ylabel(‘Amplitude’);

grid on;

sin4=sin1+sin2;

subplot(2,2,4);

plot(t,sin4);

% Adding Two Sinusoidal signal

title(‘Sinusoidal: Sin(sin1)+Sin(sin2)’);

xlabel(‘Time (Second)’);

ylabel(‘Amplitude’);

grid on; Calculate your paper price
Pages (550 words)
Approximate price: -

Help Me Write My Essay - Reasons: Best Online Essay Writing Service

We strive to give our customers the best online essay writing experience. We Make sure essays are submitted on time and all the instructions are followed. Our Writers are Experienced and Professional

Our essay writing service is founded on professional writers who are on stand by to help you any time. Free Revision Fo all Essays

Sometimes you may require our writers to add on a point to make your essay as customised as possible, we will give you unlimited times to do this. And we will do it for free. Timely Essay(s)

We understand the frustrations that comes with late essays and our writers are extra careful to not violate this term. Our support team is always engauging our writers to help you have your essay ahead of time. Customised Essays &100% Confidential

Our Online writing Service has zero torelance for plagiarised papers. We have plagiarism checking tool that generate plagiarism reports just to make sure you are satisfied. Our agents are ready to help you around the clock. Please feel free to reach out and enquire about anything.

Try it now!

## Calculate the price of your order

Total price:
\$0.00

How it works?

Follow these simple steps to get your paper done Fill in the order form and provide all details of your assignment. Proceed with the payment

Choose the payment system that suits you most. Receive the final file

Once your paper is ready, we will email it to you.

HOW OUR ONLINE ESSAY WRITING SERVICE WORKS

Let us write that nagging essay.  ## Submit Your Essay/Homework Instructions

By clicking on the "PLACE ORDER" button, tell us your requires. Be precise for an accurate customised essay. You may also upload any reading materials where applicable.  Pick A & Writer

Our ordering form will provide you with a list of writers and their feedbacks. At step 2, its time select a writer. Our online agents are on stand by to help you just in case.  Editing (OUR PART)

At this stage, our editor will go through your essay and make sure your writer did meet all the instructions.  