Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
The C# Excel Library 2020.5
dbForge Studio for MySQL 9.0
LinkedIn Clone 2.2
Uber clone Apps 4.0
Cab Booking Script 1.3.2
Airbnb Clone HomestayDNN 3.0
Magento Language switcher 1.2.1
The .Net PDF Library 2020.3.2
IP2Location Geolocation Database 2020.5
ODBC Driver for MailChimp 2.0
ODBC Driver for NetSuite 2.0
ODBC Driver for SQL Azure 3.1
dbForge Schema Compare for Oracle 4.1
dbForge Data Compare for Oracle 5.1
dbForge Studio for Oracle 4.1
Top Code
dbForge Studio for MySQL 8.1
dbForge Studio for Oracle 3.10
dbForge Schema Compare for Oracle 2.7
dbForge Data Compare for Oracle 3.7
IP2Location Geolocation Database 2020.5
Availability Booking Calendar PHP 1.0
ATN Site Builder 3.0
ATN Resume Finder 2.0
Invoice Manager by PHPJabbers 3.0
Classified Ad Lister 1.0
Extreme Injector 3.7
PHP Review Script 1.0
ICPennyBid Penny Auction Script 4.0
Aglowsoft SQL Query Tools 8.2
Solid File System OS edition 5.1
Top Rated
phpEnter 5.1.
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
Simulation and Animation of a Linear and Nonlinear Pendulum Model 1.0
File ID: 85649






Simulation and Animation of a Linear and Nonlinear Pendulum Model 1.0
Download Simulation and Animation of a Linear and Nonlinear Pendulum Model 1.0http://www.mathworks.comReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 1
Submit Rating:
Simulation and Animation of a Linear and Nonlinear Pendulum Model 1.0 Description
Description: Demonstrates how to use both movie2avi and VideoWriter to generate avi files from simulation data.
AnimatePendulum.m simulates and animates a simple pendulum using both linear and nonlinear dynamic models. A larger difference is observed between linear and nonlinear models when maximum angular position is large. This condition can be achieved by specifying either a large initial angle or velocity.

After simulation of both the linear and nonlinear models the code steps through each time step and plots the pendulum as well as its position and velocity trajectories. These plots are recorded using the getframe command, and then used to produce a video of the animation using both the movie2avi and VideoWriter commands.

Several videos based on this code are available on YouTube:

<!--dp_youtube_begin:http://www.youtube.com/watch?v=X-OCz9lIiY4--><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/X-OCz9lIiY4&hl=ru&fs=1"></param><param name="wmode" value="transparent" /><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/X-OCz9lIiY4&hl=ru&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" width="425" height="344"></embed></object><!--dp_youtube_end-->
(linear simulation)

<!--dp_youtube_begin:http://www.youtube.com/watch?v=8WE6HsIopO0--><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/8WE6HsIopO0&hl=ru&fs=1"></param><param name="wmode" value="transparent" /><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/8WE6HsIopO0&hl=ru&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" width="425" height="344"></embed></object><!--dp_youtube_end-->
(small angle comparison)

<!--dp_youtube_begin:http://www.youtube.com/watch?v=XI7vcWr-D_8--><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/XI7vcWr-D_8&hl=ru&fs=1"></param><param name="wmode" value="transparent" /><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/XI7vcWr-D_8&hl=ru&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" width="425" height="344"></embed></object><!--dp_youtube_end-->
(large angle comparison)

License: Shareware

Related: plots, trajectories, Recorded, steps, initial, angle

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 1



More Similar Code

This submission provides functions (and examples scripts) for estimation, simulation and forecasting of a general Markov Regime Switching Regression.

Features of the package:
- Support for univariate and multivariate models.
- Support of any number of states and any number of explanatory variables.
- Estimation, by maximum likelihood, of any type of switching setup for the model. This means that you can choose which...



Calculates the eigenvalues, state transition matrix, state vector and output of a linear system described in state space form.
The answer is given in symbolic form.

>> statespace
The inputs A,B,C, and D must be given in...



Simple Zero Phase Distortion Multiplier-less Gaussian Low-Pass & High-Pass Digital Filter of a Linear Chirp.



This matlab scprit calculates fractal dimension and intercept of a 3D volume along each redial line using Fourier analytical technique. Directionally averaged fractal dimension, intercept and Hedgehog plots of fractal dimension and intercept of...



finds null space and range of a sparse matrix using lu decomposition.

This routine is devoted to find null space of possibly large matrix fast.
Results may be inaccurate if zero and nonzero singular values are not well separated.



This routine calculates the median squared error of a linear function, and can be used with fminsearch as a robust linear regression (see help LinearMedianSquaredError).

It should be very easy to extend the example code to handle...



Use newton_pendulum and the simulation and animation will start.



Computes the variance of a linear sum of variables. Requires a vector of weights (for the linear sum), and a covariance matrix of the variables.



This recpie defines the Matrix class, an implementation of a linear algebra matrix. Arithmetic operations, trace, determinant, and minors are defined for it.



Based on recent mathematical advances, BhT provides a collection of M-Files for design, simulation and analysis of articulated bodies' motions in fluid. More widely, BhT allows also to perform easily any kind of numeric experiments about the...

User Review for Simulation and Animation of a Linear and Nonlinear Pendulum Model
- required fields
     

Please enter text on the image