Physics 281 - Computational Physics
Wednesday/Friday Section
Fall 2009
Sample MATLAB Scripts
- simple script for calculation of formula
- fall.m - falling ball calculation
- plotting examples
- function example
- scripts with iteration
- sum_example.m - computes the sum of the sequence of numbers from 1 to 10
- fibonacci.m - computes the fibonacci sequence for a number of terms input by the user.
- Ordinary Differential Equations Examples
Go to Ph281 Home
Go to Ph281 Topics