How to make Cycloid subplots

41 views (last 30 days)
Angel Washington
Angel Washington on 20 Apr 2020
Answered: Ashim on 30 Nov 2023
Make three subplots horizontally arranged of a cycloid. Go to wikipedia, http://en.wikipedia.org/wiki/Cycloid, and find the correct parameterization of the cycloid.
These are the instruction but I cannot figure it out.
This is an example of another one I did.
close all; clear all; clc; format longe;
x = linspace(0,10,100);
figure(1);
subplot(3,1,1);
% '3' means set up 3 graphs verticaly,
% '1' means 1 graph wide, and the last
% '1' means the first plot.
plot(x,cos(x));
title('Examine sin(x) times cos(x)');
subplot(3,1,2);
% '2' for the second graph.
plot(x,sin(x));
subplot(3,1,3);
plot(x,sin(x).*cos(x));
Can someone please help me to figure out to make a function that makes the subplots of a cycloid?

Answers (2)

Geoff Hayes
Geoff Hayes on 20 Apr 2020
Angel - from the link that you provided, the (polar) equations
x = r .* (t - sin(theta));
y = r .* (1 - cos(theta));
for a radius r and angles theta can be used to plot the cycloid. Here, theta is the angle for which the "rolling circle" (see link) has rotated. So this can be used for one subplot. As for the other three, do you have any more details? Or, for the second subplot are you supposed to use the Cartesian equation (again from your link)? And for the third, use the "equation of the cycloid satifies the differential equation"?

Ashim
Ashim on 30 Nov 2023
Cycloyed

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!