ENGR 121 Lecture Notes - Lecture 2: Joule, Dot Product, Scalar Multiplication

37 views7 pages

Document Summary

Creaing row vectors: direct method: put the values you want in square brackets separated by commas or spaces v = [1 2 3 4, colon operator: iterates through values in the form irst:step:last. Default step size is 1 if not speciied can go in reverse using a negaive step size. 10y logspace(2,5,4) returns [100 1000 10000 100000] default value of n is 50. Concatenaion: concatenaion is the joining together of exising vectors. Referring to elements: the elements in a vector are numbered sequenially each element number is called the index or subscript. Mat(m,:) to refer to the enire mth row. Mat(:,n) to refer to the enire nth column. Matrix indexing: use end to refer to the last row or column. Mat(end,m) is the mth value in the last row: linear indexing is only using one index into a matrix. 3d matrices: a three dimensional matrix has dimensions m x n x p.

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