Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please have the answers in MatLab in MatLab Problem 2 (10 pts) Create a function that plots a specific number of cycles of the sin()

image text in transcribedPlease have the answers in MatLab

in MatLab
Problem 2 (10 pts) Create a function that plots a specific number of cycles of the sin() function. The function should be called sine Wave. The function should have one input, N (number of cycles), and no outputs. The function should plot the sine wave starting at r=0 with increments of /10, and ending after the specified number of cycles. Remember, the period of one sine wave is 21. Title your plot "Sine Wave", label the x-axis "x", and label the y-axis "sin(x)". TEST: Test your function with N = 4. This should create a plot with four complete cycles (x going from 0 to 8). Remember, you cannot run a function from within its m-file. You must call the function in a new m-file or in the command window. Sine Wave xus 5 10 15 20 25 30 Figure 1: sine Wave.m with N = 4. NOTE: The function and m-file must be named sine Wave or the program will not run. If program does not run there will be serious point deductions. You only need to submit the function m-file. Do not submit any test files. Please submit two m-files for this assignment. Each function should be in its own m-file. The m-files should be named materialProperties.m and sine Wave.m

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

Transactions On Large Scale Data And Knowledge Centered Systems Vi Special Issue On Database And Expert Systems Applications Lncs 7600

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Stephen W. Liddle ,Klaus-Dieter Schewe ,Xiaofang Zhou

2012th Edition

3642341780, 978-3642341786

More Books

Students also viewed these Databases questions