This is a Matlab Exercise problem. Please create the Matlab codeand figure for the following problem using problemspecifications:
Plot x vs y when y=sin(x), y=cos(x), y=sin (2*x), and y=2*sin(x)when x = 1:0.1:10. Use 2 by 2 subplot, sin(x) is inlocation 1, cos(x) is in location 2, sin(2*x) is in location 3 and2*sin(x) is in location 4.
The plot should have:
(1) x label = ‘x value’, y label = ‘y value’, legend‘y=sin(x)’,’ y=cos(x)’,’ y=sin (2*x)’, ‘y= y=2*sin(x)’ and title =‘x Vs. y’ under Font Name of Times New Roman, and Font Size of 14pt. for all subplot location.
(2) For sine(x) use red solid line, for cos(x) use blue dashedline, for sin(2*x) use green dash-dot line, and for 2*sin(x) usesolid line and RGB [0.5 0.2 0.2]
(3) Create minor grid for all subplot location.
Please attach editor code and the figure in your answer. ThankYou!