Assignment 05

# Assignment 05 - University of California Berkeley Fall...

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

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.

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

View Full Document
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

• 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