Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

matlab question Part 3: Plot a sum of sine waves In this section you will create a Matlab file that generates two separate sine waves

matlab question
image text in transcribed
Part 3: Plot a sum of sine waves In this section you will create a Matlab file that generates two separate sine waves at frequencies of 1 Hz and 3 Hz and adds them (i.e. y(t) = x1(t) + x2(t) = sin(2*pi*t) + sin(6*pi*t)), using a sample rate of 2000 Hz. The result of this addition should then be plotted using the plot command. a) Create an array of time samples t that is 2 seconds long at the desired sample rate. b) Generate the signals x1 and 2 (Hint: this is similar to the in class example from 1/22). Create a third signal y that is equal to their sum c) Plot your final signal y vs time t, using the 'plot' command. Add a title and axis labels to your plot. (Hint: a plotting example is included in the Matlab Tutorial of part 2)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions