a a a a a

조회 수: 1 (최근 30일)
Randy Bobandy
Randy Bobandy 2016년 8월 4일
댓글: Star Strider 2016년 8월 18일
a a a a
  댓글 수: 2
John D'Errico
John D'Errico 2016년 8월 18일
When you remove the question, you make the answer useless to anyone else who might want to ask that question. This is an insult to the person who bothered to waste their time to help you.
Star Strider
Star Strider 2016년 8월 18일
John — TMW will re-post the original if you request them to. Apparently they keep back-up copies.

댓글을 달려면 로그인하십시오.

답변 (1개)

Mischa Kim
Mischa Kim 2016년 8월 5일
편집: Mischa Kim 2016년 8월 5일
Kenneth, check out and run this:
g = 9.81;
L = linspace(1,10,14);
theta_0 = 30;
for t = 0:0.1:60 %time in seconds
theta = theta_0*sin(sqrt(g./L)*t);
x = L.*sind(theta);
y = -L.*cosd(theta);
%creating a rope
r = plot(x,y,'*');
%creating a bob
hold on
b = plot(x(length(x)),y(length(y)),'or','markersize',30,'markerfacecolor','r');
axis([-max(L) max(L) -max(L) 0])
drawnow
delete(r)
delete(b)
end
Code needs to be cleaned up but I think you get the drift.
Also note that I changed your equation for theta to show the non-linear behavior of pendula.

카테고리

Help CenterFile Exchange에서 Timing and presenting 2D and 3D stimuli에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by