MATLAB Introduction

As an introduction to the MATLAB language, Professor Banzaert gave us a few exercises to finish out of the first four chapters of the Physical Modeling in MATLAB textbook.


Exercise 2.1: Fibonacci I
Exercise 2.1: Fibonacci I 
Exercise 2.3: Car Update script 
Using the given percentage values of cars transferred between Boston and Albany and initial values of 150 at each location, the script updates the number of cars at each site from one week to the next.

Exercise 3.1: Car Loop script 
Runs the car update script from one week to the next (for 52 weeks or a year), and plots the values for each location over the time.


Exercise 2.3
Exercise 3.2: " " with Plotting
Exercise 3.2
Using the car loop script in Exercise 3.1, prints and plots car loop script values with original initial values of 150 and new initial values of 1000.

Exercise 3.5: Fibonacci II Sequence script 
Uses a for loop to compute the first 10 elements of this Fibonacci sequence and prints the 10th element.


Exercise 4.6: Plotting Fibonacci Ratios
Exercise 3.5
Computes a vector with the first 'n' elements of a Fibonacci sequence and computes a new vector that contains the ratios of the numbers. Plot this vector to see if it seems to converge.
Simulation of the trajectory of a hit baseball
Expanded code designed to determine at what angle the horizontal distance of a baseball's trajectory is maximized.
 - (Left) Printed Values for each angle set.
- (Right) Graph of the trajectory of the ball for each angle set. Maximum horizontal distance curve is pink.
(L to R) Part I: gathering basics of the problem; Part II: applying more detailed elements and equations to find best angle; and Part III: adding the details for plotting

Comments

Popular posts from this blog

Hackathon: TechTogether Boston

Women of Color in Graduate School

Truss Design (Final)