ENGR 101 Lecture Notes - Lecture 4: Transpose, Matlab

46 views1 pages
4 Apr 2016
School
Department
Course
Professor

Document Summary

To create a vector that terms are evenly spaced, use colon first: increment: last, where increment is the amount added. Where increments is the amount of numbers you want to have in the range [x1,x2] Are also able to combine arrays-- ie [a b] is equal to array a followed by array b. Are able to access specific elements of an array in same way that you create the vectors- 1:5 will give you elements 1-5, 3:3:10 will give you elements 3-10 in increments of 3. In referencing multi-dimensional matrices, first number is row (horiz. ) and second number is column (vertical) Transpose operator= "-- basically transposes an array into a column matrix (eq. to semicolons after each element) Row vs column matrix multiplication leads to two different results. Ie in class example led to a 4x4 or a single scalar result. A colon on it"s own selects all elements. Can also use algebraic operations to create a matrix.

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