Assignment 05 - University of California Berkeley Fall...

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

View Full Document Right Arrow Icon
University of California, Berkeley Department of Mechanical Engineering Fall Semester 2008 Instructors: M. Frenklach, R. Horowitz E7, Assignment 5 Assigned: Thursday, October 2, 2008 Due: 12:00 pm, Wednesday, October 8 , 2008. This assignment is an introduction to using relational operators, logical operators and conditional statements in MATLAB . As before, turn in the hard copy of your published file to the drop boxes in Etcheverry 1109 and upload the soft copies of your script and your functions (the M-files) to bspace. Do not forget to name your main M-file as lastname_firstname_SID_lab05.m MATLAB commands * introduced in this assignment: all, any 1. This problem explores the uses of various relational operators. In the following parts, you do not need to provide comments for each line of code. Just include one short sentence describing your observations for each section. a) Define the variables x = 2 and y = 3 . Run the following commands. >> x > y >> x < y >> x >= y >> x <= y >> x == y >> x ~= y b) Now set y = [1 3; 5 2] . Run the following commands.
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '09
  • Sengupta
  • relational operator, Department of Mechanical Engineering Instructors, Berkeley Fall Semester, Mechanical Engineering Instructors

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