Code using MATLAB
The following equations will be used to create the plot shownbelow. Ask the user to input values for n and k. Your plot musthave the same colors and labels as shown. Note: n=10, k=9.
Curve a (magenta):
x1=((n-k)*cos(k*t)+k*cos((n-k)*t))/n;
y1=((n-k)*sin(k*t)-k*sin((n-k)*t))/n;
where t contains 1000 linearly-spaced data points from 0 to 6.3
Curve b (cyan):
x2=((n-2*k)/(2*n))*(cos(k*t)-cos((n-k)*t));
y2=((n-2*k)/(2*n))*(sin(k*t)+sin((n-k)*t));
where t contains 1000 linearly-spaced data points from 0 to 6.3
Curve c (blue):
x ranges from -1.0 to 1.0 in increments of 0.005
y=±√1− 2
cylinder_cost data below
10 2 13
2 5 27
4 17 2
7 18 9
3 9 43
2 17 9
4 16 21
5 16 32

Show transcribed image text
Expert Answer
An
PayPal Gateway not configured
PayPal Gateway not configured