Thursday, October 8, 2015

Hw #8

Problem #1: Free fall distance for each planet in the solar system

Given the value of acceleration due to gravity on each planet, we used simple kinematics to determine the free fall distance on each planet over a time from 0 to 100s




Shown below is a graphical interpretation of the free fall distance vs. time data obtained from the Matlab program. The program also outputs a table that is way too big to blog.



Problem #2: 

This was simply a practice of how to manipulate matrices and work with them in Matlab.


Shown below are the results of the matrix manipulations





Problem #3: Magic Matrices

In this problem, we created a magic 5x5 matrix, matrix A, and performed various manipulations on it: 2A, A^2, and A+2. We were then instructed to test each resulting matrix to determine whether or not it is still a magic matrix.

This function was used to test each matrix


This program creates the magic matrix and performs the manipulations. It then calls the 'IsMagic' function in order to determine whether or not the resulting matrix is still magic.



Output from the program.

No comments:

Post a Comment