# Lab 1

• Lab Report
• 2

This preview shows pages 1–2. Sign up to view the full content.

Lab 1: MME 213 Problem 1: 1. Created a linearly spaced array of points, starting with -1 and ending at the boundary 0. Each point has a difference of 0.1. 2. Generates a 1 by length(0:0.1:1) matrix from a normal distribution with mean of 10 and standard deviation of 0.5. 3. Generates an array, ‘y’, by using vectors ‘x’ and ‘z’. 4. Generates a single number, ‘y’, by dividing the sum of the elements of the vector ‘x’, by the length of the elements in the vector ‘x’. 5. Generates an identity matric that is the same length as the array, ’t’, with one’s at the diagonal and zero’s elsewhere. 6. Generates a number you get from dividing the array, ‘n’, by 10, by which that number is multiplied by array you get from multiplying the ‘n’ and ‘t’ together. Problem 2: >> format short g a=2; b=5; x=0:pi/40:pi/2; y=b*exp(-a*x).*sin(b*x).*(0.012*x.^4-0.15*x.^3+0.075*x.^2+2.5*x);

This preview has intentionally blurred sections. Sign up to view the full version.

This is the end of the preview. Sign up to access the rest of the document.
• Spring '15
• Soltani
• Addition, ylabel, linearly spaced array

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern