How to make Cycloid subplots
14 次查看(过去 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?
0 个评论
回答(2 个)
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"?
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!