Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem 3 – The parametric equation for a cycloid (curve traced by a point on a

ID: 3770915 • Letter: P

Question

Problem 3 – The parametric equation for a cycloid (curve traced by a point on a circle that rolls along a straight line) is given by the following x = r(q – sinq) and y = r(1 – cos(q)) where r is the radius of the circle and q is the angle of the point to a perpendicular to the line. Create an array for q that goes from 0 to 900 degrees in increments of 0.1 degrees. Calculate arrays for x and y assuming the radius of the circle is 8. Plot y as a function of x.

Use matlab for this. I have a data file that works for this so if you could just figure out a solution that would be appricated.

Explanation / Answer

radius = 8;
% 0 to 900 degrees in increments of 0.1 degrees
degree = linspace(0,900,9000);
x = zeros(1,9000);
for i = 1:9000
   x(:,i) = r*(degree(:,i) - sin(degree(:,i)));
end
y = zeros(1,9000);
for i = 1:9000
   y(:,i) = r*(1 - cos(degree(:,i)));
end
plot(x,y);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote