1. Engineering
  2. Electrical Engineering
  3. also please list all the different styles that can be...

Question: also please list all the different styles that can be...

Question details

1. Create a new Script file run 2D plot.m 2. Make sure to clear all variables and close all figure windows 3. Create a linearly spaced array x of size (1 x 200) comprising values ranging from -pi to pi 4. Compute y as shown in Equation 1 y - sin(x) + cos(x) 5. Create a new figure window 6. Plot x vs. y in red and choose a style 7. Label the x axis as Theta (in radians) and Y axis as Function Y 8. Provide title to the figure 2-D plot 9. Set the x-axis limits as -pi to pi and y-axis limits as -1.414 and 1.414 10. Make sure to switch on the grid on the figure Your result should look like Figure 1. However, the style of the plot can vary 2-D Plot 0.5 0 0.5 -3 2 0 Theta (in radians)Also please list all the different styles that can be used for # 6

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution