Question: c or C++ Language is fine HW4 i. Write a script to: a) Plot a sine wave with amplitude one from 0 to 10 and
c or C++ Language is fine
HW4 i. Write a script to: a) Plot a sine wave with amplitude one from 0 to 10 and a frequency of 2Hz b) Plot a sine wave with amplitude two from 0 to 10 and a frequency of 1KHz c) Show both data series on the same plot d) Make the first sine wave a red solid line e) Make the second sine wave a blue dashed line f) Add a title, axes labels, and legend ii. Write a script to: a) Create a 2 x 100 matrix of random numbers between 0 and 100. Consider the top row as X-coordinates and the bottom row as y-coordinates. Make a scatter plot of the positions b) Create a 100 x 100 matrix of random numbers between 0 and 100. Make an image plot of the matrix. Make a second imagesc plot of the matrix. HW4 i. Write a script to: a) Plot a sine wave with amplitude one from 0 to 10 and a frequency of 2Hz b) Plot a sine wave with amplitude two from 0 to 10 and a frequency of 1KHz c) Show both data series on the same plot d) Make the first sine wave a red solid line e) Make the second sine wave a blue dashed line f) Add a title, axes labels, and legend ii. Write a script to: a) Create a 2 x 100 matrix of random numbers between 0 and 100. Consider the top row as X-coordinates and the bottom row as y-coordinates. Make a scatter plot of the positions b) Create a 100 x 100 matrix of random numbers between 0 and 100. Make an image plot of the matrix. Make a second imagesc plot of the matrix
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
