Question
1. Suppose x is an array between 0 and . Use MATLAB to compute the array y1 and y2 that results from the function: y1
1. Suppose x is an array between 0 and . Use MATLAB to compute the array y1 and y2 that results from the function: y1 = 7 sin(4x), y2 = 7cos(4x). Use MATLAB to plot y1 and y2 a. In two different figures b. In the same figure using hold on command. Put a legend inside indicating y1 and y2. Change colors and markers to distinguish two functions. c. Utilizing subplot command and generating a 2 by 1 subplot. d. Use function plot (fplot command) to generate the functions in two different figures. e. In the same figure but with two different y-axes. Scale the x-axis from -1 to 13; and the y-axis from -8 to 8. Put the x-axis label as Time and the y-axis label as Amplitude. Put the appropriate title of the graphs. Put legends where necessary. Increase linewidth if needed. Increase the font sizes of the labels to make the figure look better.
2. Use the same x array from Problem 1, generate a 3d plot using plot3 command in MATLAB. Use x in the x-axis, y1, and y2 in the y, and z-axis respectively.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started