ENG 6 Lecture Notes - Lecture 3: Nth Metal, Random Matrix, Semicolon

55 views3 pages

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+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