5.0

5.0 | 3 ratings Rate this file 17 Downloads (last 30 days) File Size: 1.99 KB File ID: #25055
image thumbnail

Spring() To plot and animate a 2D-Spring

by Gustavo Morales

 

17 Aug 2009

easy to use and useful for mass-spring animations, elastic materials animations, etc.

| Watch this File

File Information
Description

  You have to give it the coordinates of the ends, number of coils, natural length and radius and it gives to you the (xs,ys) coordinates of the spring points, ready to use it with plot().
  The picture shows an instant image of an animation of two coupled-pendulums oscillating
  Type <help spring> for usage.
  Don't forget to leave your comments. I'll appreciate it! :-)

Acknowledgements
This submission has inspired the following:
2D Spring Coordinates for Plotting, SpringPendulum
MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
12 Jan 2010 Richard Crozier

Does exactly what it says, thanks for posting this!

24 Feb 2010 Gustavo Morales

Hi Richard!
your welcome! Notify me if you make improvements, for example, if the spring can be bent now!!! :-)

14 Oct 2010 Roland Pasto

Simple & useful. Thank you for your contribution.

04 Nov 2011 Siva Srinivas Kolukula

good one working perfect....

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
simulation Gustavo Morales 18 Aug 2009 10:11:15
physics Gustavo Morales 18 Aug 2009 10:11:15
education Gustavo Morales 18 Aug 2009 10:11:15
modeling Gustavo Morales 18 Aug 2009 10:11:15
simulation Shaikha 01 Oct 2011 09:06:44

Contact us at files@mathworks.com