How to make Cycloid subplots

14 次查看(过去 30 天)
Angel Washington
Angel Washington 2020-4-20
回答: Ashim 2023-11-30
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?

回答(2 个)

Geoff Hayes
Geoff Hayes 2020-4-20
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 2023-11-30
Cycloyed

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by