ENG EK 127 Chapter Notes - Chapter 2: Rational Function, Dot Product, Row And Column Vectors

75 views4 pages

Document Summary

[1 2 3 4] ; [1,2,3,4]: both yield a vector of [1 2 3 4] 2:6 vector increasing by 1 from x:y. 1:2:9 vector from x:y incrementing by z. Linspace (3,15,5) vector of z numbers from x:y (default z is 100) Logspace (1,4,4) vector of z numbers increasing logarithmically from x:y. [nv ls] adds vectors together, one after another. Newvec (5) displays value at specific location. Newvec (4:6) displays values in specific range. Newvec ([1 10 5]) displays values at specific locations. B (2) =9 sets value at location to new value. New values can be added through b (x+1) = y. [1;2;3;4] ; [1 2 3 4]": both yield a vertical vector of [1 2 3 4] Matrix variables are created using both vertical and horizontal elements. [2 3 4 ; 4 5 6] ; [2:4 ; 4:6]: both yield [2 3 4 ; 4 5 6] Random matrices can be created by rand(n), yielding an n*n 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