A make a pie graph to show the percentage of the

This preview shows page 1 - 2 out of 3 pages.

(a) Make a pie graph to show the percentage of the students who thought the homework was easy, moderate and difficult. Also include the percentage of the students who gave the ' Null ' answers. Set p1a = ' See figure 1 ' . Explore function pie . (b) How many students have previous MATLAB/coding experience? Put the answer into p1b . (c) How many students spend at least 7 hours studying outside of class? Put the answer into p1c . (d) How many junior said that they often attend the Wednesday lab session? Put the answer into p1d . Problem 2: Use table 1 to create a vector of structure named student to store the records of three students. The data structure should have the following fields: name, PID, homework, project, midterm and final exam. The name and PID fields are strings. The homework field is a vector of 7 homework grades. The project, midterm and final exam fields contain a single number. (a) Set p2a = student(1) . (b) Set p2b = student(2) .
Image of page 1

Subscribe to view the full document.

Field names student(1) student(2) student(3) name Peter Hamilton Susan West Jack Lew PID A01 A02 A03 homework 90 91 92 93 94 95 96 80 81 82 83 84 85 86 70 71 72 73 74 75 76 project 96 95 97 midterm 83 73 93 final exam 93 90 96 Table 1: Students’ record. (c) Set p2c = student(3) .
Image of page 2
You've reached the end of this preview.
  • Fall '12
  • Lubarda,Vlado
  • Kelvin

{[ 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