Be the first to rate this file! 17 Downloads (last 30 days) File Size: 28.8 KB File ID: #37449
image thumbnail

Mass Spring Oscillator Animated GUI

by Matija Krznar

 

11 Jul 2012

Animates three masses and four springs. Draws position and speed plots.

| Watch this File

File Information
Description

Description:
Three masses are attached to each other by four springs. The masses slide along a friction-less horizontal surface and model is developed to animate positions of the three masses, and four springs.
The mass of each spring is negligible and there is no damping in the system. The springs operate according to Hooke’s law: Force = k(elongation) where constants k1, k2, k3, k4 denote the Hooke’s constants. The first and last spring are attached to fixed walls.

Acknowledgments:
Gustavo Morales, gmorales@uc.edu.ve Spring() function used to animate springs
 
Jurica Cerovec, jcerovec@gmail.com
help with GUI coding
 
Marko Mihovilic, mihovilic@gmail.com programming ideas, useful
discussions
 

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File  
Everyone's Tags
massspring oscillator mass spring three masses four springs expm
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us