0% found this document useful (0 votes)
78 views

Matlab Assignment

This document contains instructions and problems for Assignment #1 of the ME303 - Applied Numerical Methods course. It includes 4 problems to complete in MATLAB and document the results. All work is due during the next lab session or by the following Monday at 11:59pm if submitting files online. Files must be named correctly and follow the lab submission guidelines. The problems involve importing and plotting data, calculating velocity given mass and drag coefficient, performing various matrix operations by hand and in MATLAB such as addition, multiplication, inverse, and determinant.

Uploaded by

Partha Surve
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views

Matlab Assignment

This document contains instructions and problems for Assignment #1 of the ME303 - Applied Numerical Methods course. It includes 4 problems to complete in MATLAB and document the results. All work is due during the next lab session or by the following Monday at 11:59pm if submitting files online. Files must be named correctly and follow the lab submission guidelines. The problems involve importing and plotting data, calculating velocity given mass and drag coefficient, performing various matrix operations by hand and in MATLAB such as addition, multiplication, inverse, and determinant.

Uploaded by

Partha Surve
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ME303 – Applied Numerical Methods

Assignment #1: MATLAB Review and Matrix

All hardcopy assignments (handwritten parts and MATLAB results document) are due
during your next lab session (for HW 1 Friday 02/09/2018). Attach the honor statement to the
front of your work. Show all of your works for credit. Clearly mark/box your answers. Works
that are illegible will receive a zero for the assignment. Submit your program files through
WebCampus. Make sure you follow the lab submission guidelines and put correct file name
format. Failure to follow the posted guidelines will result in loss of points even if your code and
answers are correct. The upload deadline is the following Monday after the lab at 11:59pm
(for HW 1 Monday 02/12/2018), and you will not be able to upload your files afterwards (so,
don’t wait until the last minute!!).

[5pts]Problem #1)
1.Import the data found in the Lab 1 folder and define it as y.
2.Create an x vector from 0 to 100 with a spacing of 1.
3.Plot the data using a line with red * symbols. Label the axes as x and y.
4.Repeat the process for the z data set. Plot both sets of data on the same plot and include a
legend. Use a different symbol and color for the z data.
5. In the results document just provide the plot.

[5pts] Problem #2)


A parachutist of mass 68.1 kg jumps out of a stationary hot air balloon. The drag coefficient,
c, is 12.5 kg/s. Compute the velocity of the falling parachutist using the equation below. In the
results document just provide the plot.
𝑐
𝑚𝑔
𝑣(𝑡) = (1 − 𝑒 −𝑚𝑡 )
𝑐

[5pts] Problem #3)


Determine the following by hand, and then by MATLAB.

1 3 2 6
𝐴=[ ] 𝐵=[ ]
7 5 1 4

a) A-B using loops (access each element in calculation).


Then, verify by direct calculation A-B.
b) A*B and A.*B What is the difference?
c) B^2 and B.^2 What is the difference?
d) AT and BT
e) Determinant of A and Determinant of B
f) A-1 and B-1
g) B-1*B What kind of matrix does this give?
h) A/B using loops (access each element in calculation).
Then, verify by direct calculation A/B. What is this equivalent to?

[5pts] Problem #4)


Determine the following by hand,

3 0 2 −1 8
1 −2 3
𝐴=[ ] 𝐵 = [−1 5] 𝐶 = [−1 9 3 ]
2 0 5
3 2 8 3 10000

a) A*B
b) B*A
c) CT. What can you tell about C matrix?

You might also like