ECOR 1010 Lecture Notes - Lecture 17: Taylor Series, Row And Column Vectors, Matlab

44 views5 pages

Document Summary

Do not need to be assigned; matlab does it automatically. You cannot include spaces when inputting code. In matlab, an equal sign is used to define a variable. A vector: [-1; 0; 1; 0; -1; 0] represents a matrix. To include an apostrophe, you must input it as (cid:498) Do not put a number in front of a name. A string: no math involved, just a line of text that appears in your script. Used to denote elements of a matrix/vector. When you create a variable, it is stored in the matlab workspace. You may need to clear the workspace: clear all; To close all open figures, use (cid:498)close all(cid:499) (cid:885)vars: not valid, can(cid:495)t have # in front. Sin: not valid, it is a function. Use square brackets for matrices and vectors. For row vectors, use a space or comma between elements. Column vector: use a semicolon between elements.

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