Assignment 05

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

Info iconThis 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.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

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

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online