pendulum(m,k,T,dt)

Version 1.0.0.0 (1,63 KB) von juhisteri
Simulation of a mathematical pendulum
114 Downloads
Aktualisiert 3. Dez 2017

Lizenz anzeigen

This function creates a simulation of a mathematical pendulum:
a ball of mass m [kg] is attached to a string of length L [m];
the standard gravity g=9.81 m/s^2;
air resitance is equal to F=-kv^2, where constant k is set by the user;
pendulum oscillates the time period 0..T s;
time step is dt. The outputs are:

a=angle
p=generalized momentum = m*L^2*a'
p/L= real momentum
f=video

example:
[a,p,f]=pendulum(1,0.3,10,0.01);
See a video:
https://www.youtube.com/watch?v=lCPQEAE68TU

Zitieren als

juhisteri (2026). pendulum(m,k,T,dt) (https://de.mathworks.com/matlabcentral/fileexchange/65292-pendulum-m-k-t-dt), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2017b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Assembly finden Sie in Help Center und MATLAB Answers
Version Veröffentlicht Versionshinweise
1.0.0.0