ENGRMAE 10 Lecture Notes - Lecture 5: Exclusive Or, Logical Disjunction, Negation

32 views2 pages

Document Summary

% i. why do we need these what is programming what are computers. Matrix operations and element by element operations? clear; clc; %% mean and max for 2-d arrays x = [1 5 7; 10 5 3; 7 14 8] mean(x) mean(mean(x)) max(x) max(max(x)) A=[1 2; 3 4] % 2x2 array x=[5 6] % 1x2 array. *x % element-by-element arrays must be exactly the same. % defn: a device that can be programmed to carry out arithmetic or. % defn: planned series of future events, items, or performance. % defn: a list of directions telling a computer what to do in order to. % gives 1 if true or 0 if false. 5>8 a=5<10 y = (6<10)+(7>8)+(5*3==60/4) b=[15 6 9 4 11 7 14] c=[8 20 9 2 19 7 10] d = c>=b b==c sum(b==c) f=b-c>0. A=[2 9 4; -3 5 2 ; 6 7 -1]

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents