How to make Cycloid subplots

51 vues (au cours des 30 derniers jours)
Angel Washington
Angel Washington le 20 Avr 2020
Réponse apportée : Ashim le 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?

Réponses (2)

Geoff Hayes
Geoff Hayes le 20 Avr 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 le 30 Nov 2023
Cycloyed

Community Treasure Hunt

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

Start Hunting!

Translated by