Question: Write a function that will plot cos(x) for x values ranging from pi to pi in steps of 0.1, using black color solid line. This
Write a function that will plot cos(x) for x values ranging from pi to pi in steps of 0.1, using black color solid line.
This function will plot this in three subplots in one Figure Window, with varying line widths. If no arguments are passed to the function, the line widths will be 1, 2, and 3. If an argument is passed to the function, it is a multiplier for these values (e.g., if 3 is passed, the line widths will be 3, 6, and 9). The line widths will be printed in the titles on the plots.
For example, >>cosLineWidths(2), produces the follow figure:

Line Width 2 Line Width 4 Line Width 6 0.5 0.5 CS 0.5 0.5 0.5 -5 k) 0 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
