HW2_ENED1090_AUTUMN_2016.final - Homework#2 ENED 1090...

Info icon This preview shows pages 1–3. Sign up to view the full content.

Homework #2 ENED 1090: Engineering Models I Homework Assignment #2 Due: Week of September 12 th at the beginning of your Recitation Section Instructions: 1. In addition to this HW2 document, you will also need the excel file posted with HW2: HydrogenPeroxide.xlsx. Save this file in your current MATLAB directory. 2. Show your work! Make sure you include MATLAB commands. 1. It is fine to work with other students, but what you turn in must be your own work - not something copied from someone else. Problem 1 : More Practice with 1-d Arrays (Vectors) (a) What MATLAB command will create a vector, t, that starts at 0, increments by 0.75, and ends at 6? Execute the command and display results. MATLAB Command & Results: t=0:.75:6 t = Columns 1 through 5 0 0.7500 1.5000 2.2500 3.0000 Columns 6 through 9 3.7500 4.5000 5.2500 6.0000 (b) What MATLAB command will determine how many entries are in vector t? Execute the command and display results. MATLAB Command & Results whos Name Size Bytes Class Attributes t 1x9 72 double Remember, t refers to all of the entries in the vector t. To get to specific entries, we need to index into the vector . For example, t(3) is the 3 rd entry in the vector t. Use indexing for the following problems . (c) What MATLAB command will show the 7 th entry in the vector t? Execute the command and display results. MATLAB Command & Results: 1
Image of page 1

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

Homework #2 t(7) ans = 4.5000 (d) What MATLAB command will show entries 2 through 5 in the vector t? Execute the com- mand and display results.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '14
  • Fernandez
  • Chemical reaction, MATLAB command

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern