March R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class AssignmentsAssignments Logical operationsLogical operations Summations and seriesSummations and series
March R. Smith - University of St Thomas - Minnesota Assignments Final project datesFinal project dates Matlab 1: graphsMatlab 1: graphs Matlab 2: other exercisesMatlab 2: other exercises –Some series, some booleans
March R. Smith - University of St Thomas - Minnesota Booleans Like C, but we use ~ instead of !Like C, but we use ~ instead of ! –~= instead of != And, Or, Not = single lettersAnd, Or, Not = single letters –&, |, ~ Also, prefix operatorsAlso, prefix operators –and(), or(), not(), xor(), any(), all() Vectors and stringsVectors and strings –Lengths must match! –String comparison with strcmp(), strcmpi() case free
March R. Smith - University of St Thomas - Minnesota Summations Let’s look at some converging seriesLet’s look at some converging series Google series – Wolfram, WikipediaGoogle series – Wolfram, Wikipedia
March R. Smith - University of St Thomas - Minnesota Arithmetic Mean Example It’s what it’s always been:It’s what it’s always been: Add ‘em upAdd ‘em up Divide by the lengthDivide by the length How do we find a vector’s size in Matlab?How do we find a vector’s size in Matlab? Hints for 3.4Hints for 3.4
March R. Smith - University of St Thomas - Minnesota Creative Commons License This work is licensed under the Creative Commons Attribution-Share Alike 3.0 United States License. To view a copy of this license, visit sa/3.0/us/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.