×

### Let's log you in.

or

Don't have a StudySoup account? Create one here!

×

or

by: Ana Beyer

8

0

6

# Engr 101 - Week 3 - Lecture 5 Engr 101

Marketplace > University of Michigan > Engineering > Engr 101 > Engr 101 Week 3 Lecture 5
Ana Beyer
UM

Get a free preview of these Notes, just enter your email below.

×
Unlock Preview

These notes cover logical and relational operators as well as logical indexing.
COURSE
Introduction to Computer Programming
PROF.
Laura Alford
TYPE
Class Notes
PAGES
6
WORDS
CONCEPTS
Engr101, ComputerProgramming, Matlab, LogicalOperators, RelationalOperators, LogicalIndexing
KARMA
25 ?

## Popular in Engineering

This 6 page Class Notes was uploaded by Ana Beyer on Friday September 23, 2016. The Class Notes belongs to Engr 101 at University of Michigan taught by Laura Alford in Fall 2016. Since its upload, it has received 8 views. For similar materials see Introduction to Computer Programming in Engineering at University of Michigan.

×

## Reviews for Engr 101 - Week 3 - Lecture 5

×

×

### What is Karma?

#### You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 09/23/16
Lecture 5 - Logical Operators & Indexing Thursday, September 22, 12:05 PM Truth Values • True 1 • False 0 Relational Operations • Check for equalityor perform comparisons ○ It's asking a question • When used with matrices appliedelement by element Logical Operations • Used to combine truth values ○ Can be used with matrices just like scalars Lecture 5 - Logical Operators & Indexing Thursday, September 22, 12:05 PM Truth Values • True 1 • False 0 Relational Operations • Check for equalityor perform comparisons ○ It's asking a question • When used with matrices appliedelement by element Logical Operations • Used to combine truth values ○ Can be used with matrices just like scalars * Note: All relational operators carry the same weight so on a single line it will just read them left to right Logical Arrays • A normal array with 0's and 1's in it is different than a logicalarray • Normal array logical array: wrap the normal in the logical function Logical Indexing • Indexing with logical arrays is accessing only the true or 1 elements • To access the false or 0 elements, justapply not ~ * Note: All relational operators carry the same weight so on a single line it will just read them left to right Logical Arrays • A normal array with 0's and 1's in it is different than a logicalarray • Normal array logical array: wrap the normal in the logical function Logical Indexing • Indexing with logical arrays is accessing only the true or 1 elements • To access the false or 0 elements, justapply not ~ not ~ not ~

×

×

### BOOM! Enjoy Your Free Notes!

×

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

## Why people love StudySoup

Steve Martinelli UC Los Angeles

#### "There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Amaris Trozzo George Washington University

#### "I made \$350 in just two days after posting my first study guide."

Bentley McCaw University of Florida

Forbes

#### "Their 'Elite Notetakers' are making over \$1,200/month in sales by creating high quality content that helps their classmates in a time of need."

Become an Elite Notetaker and start selling your notes online!
×

### Refund Policy

#### STUDYSOUP CANCELLATION POLICY

All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email support@studysoup.com

#### STUDYSOUP REFUND POLICY

StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here: support@studysoup.com

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to support@studysoup.com