Lecture+02+Presentation (1)

Lecture+02+Presentation (1) - 14:440: 127 Introduction to...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
14:440: 127 Introduction to Computers for Engineers Lecture 2 Lecturer: Brenda Cortez Recitation Instructors: Yun, Bo, Karthik, Muhammad 1
Background image of page 1

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

View Full DocumentRight Arrow Icon
14:440:127 New Lecture Notes will be posted on Sakai prior to Tuesday ʼ s Lecture Lecture Presentation will be posted on Sakai after Wednesday ʼ s Lecture HW01 will be posted this Wednesday - DUE Wednesday, Sept. 22nd PROJ01 will be posted this Friday - DUE Monday, Sept. 27th Exam 1 will begin Sept. 30th Changes to syllabus - next Recitations regarding the current Lecture start on Thursday and run through Wednesdays - at least until Thanksgiving time 2
Background image of page 2
14:440:127 Last Lecture Class Syllabus MatLab Environment Variables Basic Data Types Relational and Logical Operators Flow Control - Conditional Statement IF Lets quickly recap (recapitulate)! 3
Background image of page 3

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

View Full DocumentRight Arrow Icon
14:440: 127 Syllabus CHANGE!! Exam 1 = 15% Exam 2 = 20% Exam 3 = 25% THIS IS ANOTHER BIG CHANGE! Slightly less in value. 4 More than 2 absence = 0% credit We will be collecting RANDOMLY SELECTED problems from ANY UN-ANNOUNCED RECITATION for grading and this grade will count towards Homework grade! HW Problem Sets (Pass/Fail) = 10% Recitation Attendance = 6% May not be computer based. Projects 3 & 4 = 14% (7% each)
Background image of page 4
14:440: 127 Variables Contain values Start with a letter, continue with letters/numbers/underscore Case Sensitive (x is different than X) File Names -- ALSO DON'T INCLUDE SPACES Semicolon / disp whos, clear, clc 5
Background image of page 5

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

View Full DocumentRight Arrow Icon
14:440: 127 Basic Data Types (1) MatLab DOES NOT require you to declare variables or their types 6 Using C++ Using MatLab
Background image of page 6
14:440: 127 Basic Data Types (2) MatLab is dynamically typed = ok to change the type of variable whenever Strongly typed = if one variable type is needed for some operation it will NOT work on a different type Primary data type is the array Some basic classes of arrays are: Numeric: Integers(Scalar) and Floating Point Character (contains strings): Alphanumeric text MUST be in single quotes!! Cell Enclosed within { } Vector, Matrices Structs 7
Background image of page 7

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

View Full DocumentRight Arrow Icon
14:440: 127 Logical Operators Relational Operators allow us to make comparisons that are either TRUE ( 1 or nonzero number ) or FALSE ( 0 ) and we can combine these using: and - ONLY true when both conditions are TRUE 8 >> a=5; b=2; >> a~=b >> a~=b | a==b ans = 1 >> ~(a~=b | a==b) ans = 0 ans = 1 >> a==b ans = 0 >> a~=b a==b ans = 0 | or - TRUE when either of the two conditions are TRUE ~ not (key under Delete on your keyboard) - will negate the current value
Background image of page 8
14:440:127 Relational Operators <, <=, >, >= are no different that what you know (i.e x=3; x>2) == equal to 9 NOT!! the same as = ~= not equal to
Background image of page 9

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

View Full DocumentRight Arrow Icon
Now Old Stuff + New Stuff! 10
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 03/14/2011.

Page1 / 42

Lecture+02+Presentation (1) - 14:440: 127 Introduction to...

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

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