ENG 6 Lecture Notes - Lecture 3: Concatenation, Logical Matrix, Semicolon

58 views3 pages
11 Sep 2013
School
Department
Course

Document Summary

Matrix: a grid/array of numbers, w/ rows and columns. Refers to number of rows, then number of columns: ex. 2x4 array has 2 rows and 4 columns. Arrays: vectors (1d matrix: only 1 row or 1 column, row vector: enclose a list of elements in square brackets. Ex. x = [1 5 8 9] Gives a 1 row and 4 columns: column vector: tell matlab to skip to next row using semicolon. Gives a 4 row, 1 column array. Matrix: z = [1 2 3;4 5 6, 2x3 matrix (2 rows by 3 columns) Transpose (perform operation using apostrophe : switches rows and columns, 1st row becomes 1st column, 2nd row becomes 2nd column, etc, diagonal does not change for square matrices. Generating arrays: colon: use colon to create a vector x:y from x to y . Generating arrays: linspace/logspace: linspace operator: spaces points evenly between a start number and end number.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents